The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-05-2008
arag0rn's Avatar
arag0rn arag0rn is offline
Registered User
 

Join Date: Jan 2008
Posts: 2
Thanx but This is not what i want to do

thx for this idea but it does not work for me
I made something that gives the same output your code should give but this is not what i am searching for :

Code:
for mytimestamp in $(cat logs| awk -F";" '{ print $1; }'); do echo $(date -d “1970-01-01 UTC+0100 $mytimestamp seconds”); done
What i want is to replace all the timestamps (first field) in a log file with the date in UTC+0100 format but i want to keep the other fields (file scheme)...

Last edited by arag0rn; 01-05-2008 at 08:49 AM..
Reply With Quote