Hacker News new | past | comments | ask | show | jobs | submit login

there's "find ./ -type d", also (find directories only.)



'find' is an interesting animal: it* really only has a handful of traditional option parameters, and these are of the single-dash-single-letter variety. The single-dash-word parameters are all part of its expression language for selecting filesystem objects.

* checked against /usr/bin/find on OS X 10.6.8 (which seems to lack an option parameter for printing its own version number) and GNU find 4.2.27


'find' is one of the oldest Unix programs still in common use. Its standardized arguments predate modern conventions for command line arguments.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: