10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hi guys
i want to know how can i insert in a variable yesterday for example :
today=`date +%Y%m%d`
yesterday =???
thanks a lot
Please use CODE tags as required by forum rules! (4 Replies)
Discussion started by: Francesco_IT
4 Replies
2. Shell Programming and Scripting
I have the following perl one-liner to get yesterday's date, but I would like it in the form of dd-MMM-yy (for example: 01-JAN-12). Can someone alter the below code so I get the format I want? Also, could someone also give me a line for dd-Mmm-yy (for example 01-Jan-12)?
Code:
YEST=`perl -w... (3 Replies)
Discussion started by: thibodc
3 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: rahulbahulekar
1 Replies
4. Shell Programming and Scripting
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)
Discussion started by: tiger2000
2 Replies
5. UNIX for Dummies Questions & Answers
I haven't been using linux very long( and when I say that its only been about 1 week for me) I was told to do the following:
Create a Bash script that will copy all the files and subdirectories in one directory to a newly created directory. You may name the receiving directory anything you like.... (4 Replies)
Discussion started by: reecygee
4 Replies
6. Shell Programming and Scripting
how can i get yesterday in yyyymmdd format? :confused: (13 Replies)
Discussion started by: aaron_fong
13 Replies
7. Shell Programming and Scripting
How to get the date before the current date on unix tru64?
Today is 2008-02-27. I'll need 2008-02-26.
Thx (0 Replies)
Discussion started by: Tlg13team
0 Replies
8. HP-UX
How can i get the yesterday's date in YYYYMMDD format??? (4 Replies)
Discussion started by: prasadsr
4 Replies
9. UNIX for Dummies Questions & Answers
Does anyone know of an easy way to use the date function to get yesterday's date in this format: Nov 21 ? (2 Replies)
Discussion started by: ssmiths001
2 Replies
10. UNIX for Dummies Questions & Answers
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)
Discussion started by: hk_newbie
2 Replies