echo $((`cat /tmp/myfile.index 2> /dev/null` + 1)) > /tmp/myfile.index [download]
In reply to Re: the manuals fail me by JavaFan in thread the manuals fail me by Anonymous Monk