I have 8 tar.gz files that all have the same name, apart from 1 number, obviously going from 1 to 8. Here is the shell script I created, the first tar.gz filename is X11R6.7.0-src1.tar.gz:
while [ $num -lt 8 ]; do
tar -xzvf X11R6.7.0-src$num.tar.gz
$num = $num + 1
It starts to extract and uncompress the 1st one, but never gets to the second one - it just keeps looping on the first one. It seems as though it's ignoring the $num = $num + 1 statement and is just looping the same tar command. What am I doing wrong?