ls command refuses to give just folder names per command line switch

James Michael Fultz croooow at gmail.com
Sun Nov 29 00:52:11 UTC 2009


* Ray Parrish <crp at cmc.net> [2009-11-28 11:41 -0800]:
[...]
> Is there any way to get just the sub folder names? 

$ find . -type d -print

Or only subdirectories containing certain files.

$ find . -type f -name '*.html' -printf '%h\n' | uniq

> Is there any way to get a recursive listing of all of only one file
> type, with their relative path to the current folder included on each
> line?

$ find . -type f -name '*.html' -print




More information about the ubuntu-users mailing list