I am trying to run this perl script for all the input files, in a unix shell script. The problem I am facing is that the program is not able to find <output_file> in the directory (obviously because it is defined by user with -o option). It gives the following error:
IOError: [Errno 2] No such file or directory: <output_file>
yes, I would like to create an output file. My code is as follows :
for i in $(ls test/*.input)
do
new = ${i%%.input}
test.pl -i $new.input.xml -o output_$new -x $new.info -d 86
done
$new.input.xml ---> Input files in my directory.
$new.info ----> corresponding info file for each input file.
-o output_$new ---> should return output file for each input file.