26 Jan
2003
26 Jan
'03
18:15
James Hatridge
I want to make a small script something like this:
My-script input-file output-file
{ Program --options input-file output-file; }
Could someone give me an idea how to do this in bash? My main problem is how to tell the script the input and output file names.
#!/bin/bash input_file=$1 output_file=$2 program --options $input_file $output_file # or just program --options $1 $2 There are many good books about Bash. -- Alexandr.Malusek@imv.liu.se