Skip to content

Instantly share code, notes, and snippets.

@erynofwales
Created November 4, 2011 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erynofwales/1340439 to your computer and use it in GitHub Desktop.
Save erynofwales/1340439 to your computer and use it in GitHub Desktop.
Get all directories in current directory (except .)
find . -maxdepth 1 -type d -print | sed '/^.$/d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment