delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/07/31/02:31:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: ram DOT ragu AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: files manipulation
Date: 30 Jul 2006 23:19:24 -0700
Organization: http://groups.google.com
Lines: 50
Message-ID: <1154326764.352771.157900@m79g2000cwm.googlegroups.com>
NNTP-Posting-Host: 203.124.146.130
Mime-Version: 1.0
X-Trace: posting.google.com 1154326768 27198 127.0.0.1 (31 Jul 2006 06:19:28 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 31 Jul 2006 06:19:28 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 securegate.antispam.crestindia.com:8080 (squid/2.5.STABLE3)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: m79g2000cwm.googlegroups.com; posting-host=203.124.146.130;
posting-account=nfho_A0AAABKRKv5S_k82nka4Gv5WFxM
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hi
  i have problem which is simple but im struggling to solve it..below i
gave one sample of log file which is in text file format.the problem is
i have to get time in this logfile and deduct the time from system file
finally i have to bring the answer to standard output.. i got idea of
reading line from logfile and copy to stdout. but the problem is i
can't do manipulation(getting time difference) in textfile..some body
please help me out..


logfile:
---------

jobid                                              time
------------------------------------------------------------

181     0 ._11CH_CAS render       qw    07/23/2005 00:08:44
       112,113
       Full jobname:
._11CH_CAS1_q123s001_001_222_T2_ExtVeh02_SHD.ma


182     0 ._11CH_CAS render       qw    07/23/2005 00:17:43
       125-131:1
       Full jobname:
._11CH_CAS1_q123s001_001_222_T1_ExtVeh02_SHD.ma
183     0 ._11CH_CAS render       qw    07/23/2005 00:27:05
       125
        Full jobname:
._11CH_CAS1_q123s001_001_222_T2_ExtVeh02_SHD.ma
184     0 ._11CH_CAS render       qw    07/23/2005 01:33:07
       70-133:1
      Fulljobname:
._11CH_CAS1_q01s001_001_222_T3_EXTRA_VEHICALS_SHD.ma


185     0 ._11CH_CAS render       qw    07/23/2005 01:36:57
       70-133:1
       Full jobname:
._11CH_CAS1_q123s001_133_185_T3_ExtVeh03_SHD.ma


the output in stdout should be like this:


jobid         timedifference(this is diff between logfiletime and
systemtime)
-----------------------------------
181             1000 minutes

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019