Here is what I am trying to do:
Give a parameter to the shell script that will run the task in all jpg, bmp, tif extension files.
For example: ./ doProcess / media / repo / user1 / dir5
and all jpg, bmp, tif files in this directory will run a specific task.
Now I have:
for f in * do imagejob "$f" "output/${f%.output}" ; done
I need help with a for loop to limit file types, and also have some way to run in the specified directory instead of the current directory.
ash
source share