I have number in file which contains date and serial number:
2013101000.
The last two digits are serial number (00). So maximum of serial number is 100.
After reaching 100 it becomes 00 with incrementing 10 which is day with max 31.
after reaching 31 it becomes 00 and increments 10 which is month with maximum 12.
so basically when I run code it rewrites 10 digits with above conditions... My problem is that I dont know how to separate these 4 numbers. If I have "." or smth like that among them then it would be easier but here I have no idea.....
So example:
cat file
2013113098
sh my_code
cat file
2013113099
sh my_code
cat file
2013113100
sh my_code
cat file
2013113101
then I sh my_code 100 times
cat file
2013120100