Hello.,
1 gggggg C2052EX 15 Mar 31 13:03
1 rrrrrr C2052EX 15 Apr 3 12:00
todaydat=`date | awk -F" " '{print $2" "$3 }'` (# the output must be like Apr 3, or March 31 or Oct 8 etc)
find DIR_PATH/START.*.*.*.ctl* -exec ls -ltr {} \; -mmin +200 | grep "$todaydat" | awk -F" " {'print $9'}
I have a peculiar spacing problem.when i used the above find comman on march 31st it worked fine. but on april 3 it did not work.
the reason: Mar 31
Apr 3
the space between r and 3 in Marc 31 is one
but the space between r and 3 in Apr 3 is two.
so the same find command which worked on march 31st is not working on april 3rd.
can anyone please give me a suggestion to solve this.
thanks
pavi