hey all,
i have a need for a script that can read a text file containing info such as:
1esm
P
20030224
20030228
0
1
1
1
0
1
0
P
0
find the "date" fields in the file (rows 3 and 4), analyze them, do something with them (say, add 7 days to each), write the new values into the file, and then close. the result of the script (adding 7 days to each date) would be the following:
1esm
P
20030303
20030307
0
1
1
1
0
1
0
P
0
i know zip.squat about unix scripting, except that there are a number of scripting languages available, any of which i'm willing to learn. what's the best choice for this type of problem?
much appreciated,
ixnay5
i have a need for a script that can read a text file containing info such as:
1esm
P
20030224
20030228
0
1
1
1
0
1
0
P
0
find the "date" fields in the file (rows 3 and 4), analyze them, do something with them (say, add 7 days to each), write the new values into the file, and then close. the result of the script (adding 7 days to each date) would be the following:
1esm
P
20030303
20030307
0
1
1
1
0
1
0
P
0
i know zip.squat about unix scripting, except that there are a number of scripting languages available, any of which i'm willing to learn. what's the best choice for this type of problem?
much appreciated,
ixnay5