ls only directories without slash site:superuser.com - Axtarish в Google
10 нояб. 2013 г. · To get only directories but omit the slash: ls -d */ | sed 's#/##' Or you'll have to use something like find . -type d -maxdepth 1 (but this introduces ./
26 мар. 2013 г. · The find command is the way to go. The ls -d approach has two problems right now: Both are fixable. tr can take care of the slashes, and you need redirection.
2 февр. 2011 г. · If your intention is to specify directories and not files, then you should use a trailing slash, because it makes the command more robust: if ...
5 окт. 2010 г. · The call to sub removes a trailing slash from the toplevel directory, in case e.g. find ./ was called. As usual there's a cryptic zsh one-liner.
10 окт. 2011 г. · -d doesn't mean to list directories only, it means to not list directory contents. Try typing ls */ and you'll see the contents of all the directories.
7 мар. 2020 г. · Providing the starting path as /a/b/c/ (note the trailing slash) requires you to use ! -path /a/b/c/ (also with a trailing slash) because ...
8 февр. 2013 г. · There are several ways to accomplish this with find. Approach 1 is less hacky and will work well with strange directory names.
14 сент. 2011 г. · You can use: ls -d -- */ Since all directories end in / , this lists only the directories in the current path. The -d option ensures that only the directory ...
23 июл. 2018 г. · When this option is enabled, all paths to directories are suffixed with a / . So if the symlink's target path already has one trailing backslash ...
16 февр. 2010 г. · The following command will list directories first, ordinary files second, and links third. ls -la | grep "^d" && ls -la | grep "^-" && ls -la | grep
Novbeti >

Ростовская обл. -  - 
Axtarisha Qayit
Anarim.Az


Anarim.Az

Sayt Rehberliyi ile Elaqe

Saytdan Istifade Qaydalari

Anarim.Az 2004-2023