I am using this 3 line shell script and it works to compare 2 files sizes.
FIRSTV=`stat -c%s crk03-rtr-002-20140504.rsc`
SECONDV=`stat -c%s crk03-rtr-002-20140503.rsc`
echo `expr $FIRSTV - $SECONDV`
If there a way I could do this on 1 line using expr or a better command which can tell me the number of bytes differnce between 2 files?
L
echo `expr $FIRSTV - $SECONDV`produces exactly the same output asexpr $FIRSTV - $SECONDV; you don't need the echo or back-quotes.