Last active
October 4, 2018 07:42
-
-
Save salopst/8fdbf52141db824c88ed2ce0bdf42935 to your computer and use it in GitHub Desktop.
bash loop files
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
#!/bin/bash | |
FILES=./* | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
# take action on each file. $f store current file name | |
cat $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment