[Gllug] Locating Subdirectories
Tethys
tet at createservices.com
Tue Jul 27 12:09:22 UTC 2004
John Hearns writes:
>Nope, but for fun way more complicated:
>ls --directory -l * | grep ^d | sed 's/ \+/ /g' | cut -f 9 -d ' '
Or less complicated:
ls -a1F | egrep '/$' | cut -d/ -f1
(list all files, appending a "/" to directories, grep for them and
remove the trailing slash)
Tet
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list