I need to get all of the jpg files in a directory, and execute the following command on each one:
mycommand -in <imagebasename>.jpg -out <imagebasename>.tif --otherparam paramvalue
I thought about:
find . -name "*.jpg" -exec mycommand -in {} -out {}.tif --otherparam paramvalue\;
but this will pass something like "./<imagebasename>.jpg" to mycommand. I need to pass <imagebasename> only instead.
I don't need to process the directories recursively.