foreach.pl is a perl script that runs a command on multiple files. It is not as mighty as find's execute function, but much easyier to use and it's syntax should be much better to remember.
The programm accepts various parameters in the given command which are substituted by different parts of the actual filename.
The following parameters can be used:
The script assumes “<command> %l” as given command when no parameter is used. Special chars in each parameter are quoted by the script.