in reply to Re^2: Run a script on every file in a directory
in thread Run a script on every file in a directory

More like insufficient information in the question, so I answered the typical case. Should the OP answer me the following questions and specify the target shell, I'll provide.

  • Comment on Re^3: Run a script on every file in a directory