Skip to content

Instantly share code, notes, and snippets.

@shane5ul
Last active December 20, 2015 06:59
Show Gist options
  • Save shane5ul/6090213 to your computer and use it in GitHub Desktop.
Save shane5ul/6090213 to your computer and use it in GitHub Desktop.
Loops through files in a directory that match a certain pattern
# 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