I would like to know how I could get a yesterday date in yyyymmdd e.g. today is 20011109, and I would like to get 20011108. Thank you!:confused: (2 Replies)
Hi All,
Can anyone tell me a simple way of converting a date in ddmmyyyy format to dd-mmm-yy format.
For example
17022006 to 17-FEB-06
Thanks in advance
Regards,
Gaurav (11 Replies)
i have an variable mydate=2008Nov07
i want o/p as in variable mymonth=11 (i.e nov comes on 11 number month)
i want some command to do this for any month without using any loop.
plz help me (1 Reply)
Dear All,
Actually, i'm doing some reporting job and i need to pass yesterday's date in Year-Month-Day format(e.g. 2009-06-10) to another program for generating 2009-06-10 report.
to get today's date, it's easy to just date '+%Y%m%d' , but no idea how can i get this kind of format for... (2 Replies)
Hi,
Below command is producing yesaterday's date in mmddyy format -
perl -e '@T=localtime(time-86400);printf("%02d%02d%02d",$T+1,$T,($T+1900)%100)'
But i want the date in mmddyyyy format; plz help.
Thankx,
Rahul Bahulekar.
---------- Post updated at 05:13 AM ---------- Previous... (1 Reply)
Thanks for giving your time and effort to answer questions and helping newbies like me understand awk.
I have a huge file, millions of lines, so perl takes quite a bit of time, I'd like to convert these perl one liners to awk.
Basically I'd like all lines with ISA sandwiched between... (9 Replies)
Input_file_1:
ABC1 DEF11
ABC3 DEF7
ABC7 DEF36
Input_file_2:
DEF7 light 23
DEF11 over 2
DEF11 over 1
DEF17 blue 0
Perl one-liner that join two input file based on columns sharing a value (In this example, column 2 in Input_file_1 and column 1 in... (3 Replies)
I need to be able to compare dates in the format of Jan 10, 2012 and Jan 10 2012. (Notice one has a comma).
Then I need to find the date that is 7 days before those dates if they are equal.
How can I do this in Bash.
Thank ahead (4 Replies)
I need to change Date and time stamp format from Jan 01 2015 11:00:00 PM to 01/01/2015 23.00.00
Existing Format : Mon DD YYYY hh:mi:ss AM/PM (Jan 01 2015 11:00:00 PM)
Expected Format: MM/DD/YYYY hh.mi.ss 24 hours (01/01/2015 23.00.00)
I need to update enitire file where... (3 Replies)