👤
Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

datetimestamp related query!

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 11-03-2009
datetimestamp related query!

Hi all,

I have put a query in a thread but didn't get any reply. Hoping to get a reply here.

I have a file in that one line resembles like below...

Code:
 
Forwarded by Deepak on 11/15/2009 10:28 AM EST

ofcourse AM can be PM also...

so what i need is first i need to get only "11/15/2009 10:28 AM EST"
from the line..

then I need to change the time to 24hr format....

if it is EST after AM/PM then let the time be same as given..

if it is AST instead of EST deduct 9.5hrs from the given time.

if nothing is there after AM/PM then deduct 9.5hrs from the given time.

so the final output should be in the form of mm/dd/yyyy hh:mm


Please help me guys...

---------- Post updated 11-03-09 at 01:19 AM ---------- Previous update was 11-02-09 at 11:35 PM ----------

help me guys
# 2  
Old 11-03-2009
Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Proceed here:

https://www.unix.com/shell-programmin...mm-format.html

Thank You.

The UNIX and Linux Forums.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Interfaces related query ggayathri Emergency UNIX and Linux Support 2 02-14-2018 12:17 PM
query related to grep pbankar UNIX for Dummies Questions & Answers 2 08-18-2011 07:12 AM
A query related to 'ls' command Zaib UNIX for Dummies Questions & Answers 2 05-03-2011 08:56 AM
query related to if sainathdeg Shell Programming and Scripting 1 08-26-2008 08:49 AM
Print related query sapan123 Shell Programming and Scripting 1 08-09-2008 04:54 AM
awk related query abhisek.says UNIX for Dummies Questions & Answers 2 05-22-2008 02:49 AM
shell script related query gopsman Shell Programming and Scripting 1 12-02-2007 11:50 PM
sed related query gopsman Shell Programming and Scripting 1 11-30-2007 08:03 AM
Query related to #!/bin/sh sureshg_sampat Shell Programming and Scripting 2 02-08-2007 04:54 AM
Date change related query franklo UNIX for Dummies Questions & Answers 2 09-04-2002 09:41 PM


All times are GMT -4. The time now is 05:12 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password