run command for all files in directory 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