This doesn't seem to be working correctly.
$4 is a C file. $in is the input file. $5 is a newly created output file, after $in inputs to $4 (I'm not really sure about this one.)
$out is an output that I created before running the script.
After, I'm comparing $5 and $out to see if they are equal.
I'm just wondering what does the ; mean.
$4 < $in > $5
if diff $5 $out >/dev/null 2>&1 ;
then
echo "same!"
else
echo "different!"
fi
(This is in Bourne Shell)
;does in sh?$1,$2and$3represent? What exactly are you trying to do? Please explain at a high level. (For example, "I'm trying to compare the old and new versions of a C source file after compiling them to ensure they're both sound", except that only seems to require two arguments and not$inor$outtoo.)