How do I Process Multiple Files

Hi,

First post here.

In Mac OSX terminal I need to run a program against multiple files in a directory and append the output to tab separated variable file.

I currently type the following to process just one file

MBP:/Users/dc1743/Desktop/SFT root# ./myprogram myfile1.plist >> output.tsv

My program and all the files I want to process are in the SFT directory in this example. I want to be able to carry out this process against all of my files in one go rather than one at a time. Please can anyone suggest a command or simple script to achieve this.

As I am sure you can tell I am a complete novice at this.

Regards Richard

for file in *.plist
do
  /path/to/myprogram $file >> output.tsv
done