Hi guys i need advice on the approach to this one......
I have a file say called
Thisfile.20130524.txt
i need to work out from the date 20130524 what day of the week that was and then process the file in 3 working days. (so not counting saturday or sunday....(will not worry about bank holidays at the moment)
so in this example the 24th was a friday ignore the 25th and 26th being saturday and sunday so i would process the file on the 29th.
so breaking it down
- Need to work out from the file name the day of the week
- Take the day of the week and count 3 days forward not including the weekends
Can someone suggest how i would approach this? Maybe using the Cal and nawk? Any suggestions would be helpful. I do believe my brain has shutdown and gone on holiday