Greetings!
I have a fairly simple admin script to show progress on various overnight jobs. On one, I show the date of the last 3 runs on a particular job,(to represent Base, Previous, Last Run). Like this
echo "`ll /file1 | cut -c 45-51` `ll /file2 | cut -c 45-51` `ll /file3 | cut -c 45-51`"
Result:
Base Previous Last Run
Nov 19 Nov 21 Nov 22
I'd like to also show the day of week that file1, file2, file3 were generated in an echo statement directly below. I'm thinking that a date and grep statement is the answer.
Ideal Result:
Base Previous Last Run
Nov 19 Nov 21 Nov 22
Tues Thu Fri
I would definately appreciate a code snippet or a strong hint on how to do this.
Thanks in advance!
-Michelle
I have a fairly simple admin script to show progress on various overnight jobs. On one, I show the date of the last 3 runs on a particular job,(to represent Base, Previous, Last Run). Like this
echo "`ll /file1 | cut -c 45-51` `ll /file2 | cut -c 45-51` `ll /file3 | cut -c 45-51`"
Result:
Base Previous Last Run
Nov 19 Nov 21 Nov 22
I'd like to also show the day of week that file1, file2, file3 were generated in an echo statement directly below. I'm thinking that a date and grep statement is the answer.
Ideal Result:
Base Previous Last Run
Nov 19 Nov 21 Nov 22
Tues Thu Fri
I would definately appreciate a code snippet or a strong hint on how to do this.
Thanks in advance!
-Michelle