I am new to shell script. I have two Perl scripts for text processing based on two different input files. I would like to have one shell script that runs based on conditions.
If (input file) matches word /extraction_reversed/
run perlscript1.pl
otherwise run perlscript2.pl
.
Shell script to compile in terminal:
sh run.sh inputfile > outputfile
inputfile
contains word? – Thor Jul 13 '12 at 20:36