[Ilugc] Help required for date manipulation in linux

  • From: mehul.n.ved@xxxxxxxxx (Mehul Ved)
  • Date: Tue, 8 Jul 2014 17:28:27 +0530

On Tue, Jul 8, 2014 at 4:11 PM, Raja Mahalingam <raja82itmk at gmail.com> 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.

Other related posts: