What's a simple way to list the immediate subdirectories of a given location?
- by Bribles
Is there a built-in command or a less verbose way of achieving this?
find /var/foo -maxdepth 1 -type d
Or should I just make a tiny shell script or function if I'm doing this sort of thing often?