Skip to content

Instantly share code, notes, and snippets.

@brpaz
Last active August 29, 2015 14:13
Show Gist options
  • Save brpaz/50b095004eb7fe9745bb to your computer and use it in GitHub Desktop.
Save brpaz/50b095004eb7fe9745bb to your computer and use it in GitHub Desktop.
Iterates over all files in directory #bash #filesystem
for dir in */; do
echo "$dir"
done
for i in $(find $PWD -maxdepth 1 -type d); do echo $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment