On Tue, Jul 8, 2014 at 4:11 PM, Raja Mahalingam <[email protected]> wrote:
> Hi ,
>
> I am working on script creation for user audit report and last command
> doesn't o/p the year.
> I need to find year of the given date of month and day on linux box.
> Need to check only for past 10 years.
> example :
>
>   input  = Thu Apr 15
>  Required o/p 20140415
>
> Any unix/linux commands or perl function would be good.

Just a word of caution, the day+date pattern repeats every 6+11+11
years. The calendar for 2009 was same as what we'll see in 2015. This
can cause bugs.
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to