LS Directories Only?

Janina Sajka janina at rednote.net
Wed Apr 27 12:40:48 UTC 2005


Karl's is more elegant, but you can also:

find . -type d -maxdepth 1

And, you can tweak this in different ways, as your needs may dictate,
for instance:

find . -type d

It's either a feature or a bug that the find syntax exposes hidden
directories.

Karl Dahlke writes:
> ls -1p | fgrep /
> 
> Karl Dahlke
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list

-- 

Janina Sajka				Phone: +1.202.494.7040
Partner, Capital Accessibility LLC	http://www.CapitalAccessibility.Com

Chair, Accessibility Workgroup		Free Standards Group (FSG)
janina at freestandards.org		http://a11y.org

If Linux can't solve your computing problem, you need a different problem.




More information about the Blinux-list mailing list