Question : Bash/Perl Script Phase Help

Hello
i'm using a program called Phase. (http://stephenslab.uchicago.edu/software.html)
i'd like to create a script with bash or similar which take the phase command and parameters
and instead of taking one input file, takes all input files in the directory...
PHASE -M  test.inp  test.out
Input and Output files should have the same name...

Any Ideas?
Which language to recommend?

Answer : Bash/Perl Script Phase Help

1:
2:
3:
4:
5:
for file in *.inp
do
  f=$(echo $file | awk -F. '{print $1}')
  ./PHASE -M $file $f.out
done
Open in New Window Select All
Random Solutions  
 
programming4us programming4us