Last active
August 29, 2015 14:13
-
-
Save brpaz/50b095004eb7fe9745bb to your computer and use it in GitHub Desktop.
Iterates over all files in directory #bash #filesystem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dir in */; do | |
echo "$dir" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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