hey...
That Date function doesnt work......Can u more precise in what u said......
This is what u had replied.......for my query.....
date --date='3 months ago' "+%b"
On Thu, Jan 16, 2003 at 05:30:00AM +0000, Amit Karnik wrote:
hi
In shell Script...how do i get a month which was 3 months earlier to the present month......i.e Now its Jan ...How do i get Jan minus 3 which shuld return me.......Oct..... It shuld b in format of Jan..Feb..only...as i need to search a file by that name and then delete it......File Format is...***Jan_01..., ***Feb_01 and so on...So on Jan1st i need to delete a file which has name ***Oct_01 and this shuld go on for rest of the yr... Thanks in Advance
[cricket.gif] Catch all the cricket action. Download [1]Yahoo! Score tracker
References
Amitay.
Amit Karnik wrote:
hey... That Date function doesnt work......Can u more precise in what u said...... This is what u had replied.......for my query..... date --date='3 months ago' "+%b"
Works perfectly fine for me on RedHat 8.0 with date (sh-utils) 2.0.12 What do you mean by it doesnt work?? post the output to the list.
Regards Aseem