linux execute command on files code example
Example: run script on files in folder output to file
for file in /dir/*
do
cmd [option] "$file" >> results.out
done
for file in /dir/*
do
cmd [option] "$file" >> results.out
done