[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: LS Directories Only?



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 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 freestandards org		http://a11y.org

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]