I am really new to shell scripting, but here is the situation: I have a text file that contains the following :
int1, operationName1
int2, operationName2
int3, operationName3
In a nutshell, the file contains some operations (operationNameX) and the number of days remaining to execute each operation (intX).
I want to write a script that will be executed once per day and removes 1 from each int. for example if "test.txt" contains:
2, operation1
4, operation2
3, operation3
after the execution of the script, it will contain:
1, operation1
3, operation2
2, operation3
any idea on what should I do??