10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
There's a file whose date format for the year 2012 are currently in mddyyyy format that we are trying to change to mmddyyyy. Presuming that the grep command in the excerpt below is accurate, it looks like there are over forty-nine thousand records affected by the single-digit month format:
-... (2 Replies)
Discussion started by: HLee1981
2 Replies
3. Shell Programming and Scripting
Hi Guru's,
I am working on a shell script from past a month and unable to get rid of automating while working with dates,here's what i have.
inital_date=11012011
final_date=11302011
expected_output= has to be in below format PFB
11012011
11022011
11032011
*
*
*
11102011
*
*... (9 Replies)
Discussion started by: Gaurav198
9 Replies
4. Shell Programming and Scripting
I am new shell scripting.
Can someone please help in giving a shell script to convert from DD MON YY to mmddyyyy
Example:
Input1 :- 20 Apr 2011
Output2 should be :- 04202011
Input2 :- 09 MAR 11
Output :- 03092011
Input3 :- 30_JAN_11
Output :- 01302011
Need help in writing shell... (1 Reply)
Discussion started by: aakishore
1 Replies
5. Shell Programming and Scripting
How do I change the date format from mmddyyyy to yyyymmdd in PERL.
Can any one help me please. (3 Replies)
Discussion started by: thankful123
3 Replies
6. 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
7. Shell Programming and Scripting
I am currently running the following Korn shell script which works fine:
#!/usr/bin/ksh
count=`db2 -x "select count(*) from schema.tablename"`
echo "count"
I would like to add a "where" clause to the 2nd line that would allow me to get a record count of all the records from schema.tablename... (9 Replies)
Discussion started by: sasaliasim
9 Replies
8. Shell Programming and Scripting
How do I display the date in the format "YYYY-Mmm-DD" using perl.
e.g 2008-Jun-03
I have a perl command below which displays the date in the format "YYYY-MM-DD" but I want the month to be displayed as "Mmm" (The first 3 characters of the name of the month with the initial letter being upper... (2 Replies)
Discussion started by: stevefox
2 Replies
9. HP-UX
How can i get the yesterday's date in YYYYMMDD format??? (4 Replies)
Discussion started by: prasadsr
4 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