Skip to content

Instantly share code, notes, and snippets.

@salopst
Last active October 4, 2018 07:42
Show Gist options
  • Save salopst/8fdbf52141db824c88ed2ce0bdf42935 to your computer and use it in GitHub Desktop.
Save salopst/8fdbf52141db824c88ed2ce0bdf42935 to your computer and use it in GitHub Desktop.
bash loop files
#!/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