4 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Legends,
how do i get 3rd week of friday in every month and execute a particular script say /tmp/abc.sh ???
i think after "cal" we can traverse through using some for loop.:wall:
pls help me.
Dosanjh (8 Replies)
Discussion started by: sdosanjh
8 Replies
2. Shell Programming and Scripting
Hi,
I need to get the date of last friday of every month. how can i achieve this ? please guide me.
Thanks in advance (3 Replies)
Discussion started by: apsprabhu
3 Replies
3. Shell Programming and Scripting
Help please! I need to read the calendar and put the date of the third Friday of each month into a variable for comparison in an "if" statement. How would I do this?
Thnx,
leslie02 (10 Replies)
Discussion started by: leslie02
10 Replies
4. Shell Programming and Scripting
I am trying to write a script that shows every Friday in a month.
I used
cal $1 $2 | grep -v "^$" | awk '{print $6}'
It doesn't work for the frist week of Friday because calendar command output has some spaces in the first line and awk '{print $6}' doesn't work. Anybody help
me with this... (3 Replies)
Discussion started by: LAY
3 Replies