10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
i had a code where in user will enter a date in yyyymmdd format.. i didnt use any validation for the date and now the problem is if a user enters date instead of month after year it is proceeding with the code..
like if the date is 20120426 and if the user enters 20122604 it... (4 Replies)
Discussion started by: smarty86
4 Replies
2. Shell Programming and Scripting
I have a filename,
This can be any of any format,
I want to check if the filename has hours,mins and seconds part. If it is present, i want to replace it with a " * " (star symbol)
output needed:
IMP: The time part can be in any pattern.
How can this be done?:confused:... (3 Replies)
Discussion started by: irudayaraj
3 Replies
3. Shell Programming and Scripting
I have got few date format patterns like "yyyymmdd", "yy_mm_dd" etc.
There can be any combination of such patterns.
I have used add_delta_days to find "yyyy", "yy", "mm", "dd" for the current date and saved them to different variables like "$y1", "$y2", "$m1" etc
In one line, i want to... (10 Replies)
Discussion started by: irudayaraj
10 Replies
4. Shell Programming and Scripting
I want to know the different types of date format possible in perl.
Eg: yyyymmdd, yymmdd etc...Is there any format like YMD?
Where can i find the list of all possibilites?
Thanks in advance (1 Reply)
Discussion started by: irudayaraj
1 Replies
5. Programming
Hi friends,
Please see the below code carefully.
=======================================================
# Get batch date and Ord range
open OR,$ARGV;
while (<OR>) { # find the batch date
next if length $_ < 3; # BLANK LINE
# last if $. > 120; # sample should be good enough... (2 Replies)
Discussion started by: pspriyanka
2 Replies
6. Shell Programming and Scripting
Hi,
I have written a small perl script to handle particular date format using perl, but it is not substituting the whole string. Can some one please check on what is the issue with the code.
$_ = "Date: November 25, 2010 09:02:01 PM";... (1 Reply)
Discussion started by: sarbjit
1 Replies
7. Shell Programming and Scripting
Hi Everyone,
Mon 18 Jan 2010 09:52:10 AM MYT
the output is
20100118 09:52:10
how to do it in perl regular expression =~
Thanks (3 Replies)
Discussion started by: jimmy_y
3 Replies
8. 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
9. 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
10. UNIX for Dummies Questions & Answers
Hi Guru's,
Are there any simple method to check the date format which is in "YYDDD"
(ex: 08002 for 02-Jan-2008)?
Eventhough this can be implemented in several way's, I need the simpler one. Any idea would be much appreciated.
Thanks in advance,
Mysore Ganapati (4 Replies)
Discussion started by: ganapati
4 Replies