Wednesday, August 13, 2014

Looping over a list of files in Bash

Really, bash was meant for hackers:

FILES=*.txt  # What ever filter you want
for f in ${FILES}
do
  # Your commands here
done

No comments:

Post a Comment