echo $((`cat /tmp/myfile.index 2> /dev/null` + 1)) > /tmp/myfile.index