Processing multiple files

Hello

I have a program cfxfrwb which is designed to remove headers from reports files.
The cfxfrwb is located in the following directory /u01/efin/v40/live/bin

I run the program against a single report file in the temp directory and it does it's job.

./cfxfrwb /home/efin/efintran/temp/cli_r02r0051.prt

I'd like to run the ./cfxfrwb against several report files.

I modified a script I found on the web but it doesn't seem to work

#!/bin/bash
FILES=/home/efin/efintran/temp/*
for f in $FILES
do cfxfrwb
  echo "Processing $f file..."
  # take action on each file. $f store current file name
  cat $f
done

I'd be grateful if someone could offer some assistance.

Many thanks

#!/bin/bash
FILES=/home/efin/efintran/temp/*
for f in $FILES
do 
   /u01/efin/v40/live/bin/cfxfrwb $f
  echo "Processing $f file..."
  # take action on each file. $f store current file name
  cat $f  # what will this do for you?  I just dumps the data to the tty (or log file)
  # maybe you want to mv $f to some other directory/filename
done

Many thanks Jim...that worked a treat.

Cheers