Hi
This line is buggy:
Quote:
pagenumber=`echo $line | cut -b 0-8`
|
That cut command take a range of bytes, 1 meaning the first byte. So using 0 here is incorrect.
http://linux.die.net/man/1/cut
It doesn't say what should happen if the numbers are incorrect. My guess is that some other versions of cut simply ignores it, and uses 1 instead, while others give an error message.
Try changing the line to this:
Quote:
pagenumber=`echo $line | cut -b 1-8`
|