Last active
December 20, 2015 06:59
-
-
Save shane5ul/6090213 to your computer and use it in GitHub Desktop.
Loops through files in a directory that match a certain pattern
This file contains 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
# matches files/directories with patterns | |
# like NL300/L0.1, NL10/L0.4 etc | |
for i in NL*/L* | |
do | |
cd $i | |
echo $i | |
# do something else | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment