The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Modifying file from outside Sreejith_VK Shell Programming and Scripting 9 08-21-2008 02:57 AM
can someone help me with modifying this file eamani_sun Shell Programming and Scripting 2 05-22-2008 02:15 PM
To alter perl /bin/date output by - 5 hours Texan Shell Programming and Scripting 2 08-17-2005 09:28 AM
finding date and time after 3 hours svannala High Level Programming 2 09-08-2003 12:07 AM
How to subtract 2 hours from 'date' in shell ( /bin/sh ) script ? yairon UNIX for Dummies Questions & Answers 1 06-07-2001 04:23 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-24-2008
aismann aismann is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 37
modifying date (-10 hours) in the content of a file

Dear Experts,

I have a problem. I have a file which has contents such as below, with about 500K lines


Code:
34|1|532|2008.10.24 23:41:13|2-1-1-13|90130060128441171|CO0402|0|0x00000201A402000021F6005D4901EC1C2000|0|0|0xE00319FFFFBFFFFE|

with field separator "|", the 4th field is the date (date time), which i need to replace with -10 hours. i need a script urgently to do this. there are multiple files from different days, with each file containing about 500K lines of the above. Please help !

Sara
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0