Author Message

I have a montly log file, with following format.


-----------Html files ....
Report Title : Search Results

and other reports based upon .. IP address'.

I need to extract Date and Search Results from this report
in the format of
     Date      Search Results

I tried following and it doesn't work at all.

 perl -ne 'print $1, "\t" if /^Date: (\d+ \w+ \d+)/; print $1, "\n" if
/^SearchTotal?([\d,]+)/' filename.txt

Please help me out with this.  Thanx.

--== Sent via http://www.*-*-*.com/
---Share what you know. Learn what you don't.---

Sat, 27 Oct 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. What is pseudorandommy @chars=('a'..'z','A'..'Z','0'..'9','_');

2. unpack('x10','')

3. getservbyname('smtp','tcp') Problem

4. split on ':', but not '\:'

5. 'do'/'require' + parameters

6. qx, $! eq 'No child processes', SIG{CHLD}, undef, '', and 'DEFAULT'

7. wanted: scripts that emulate 'awk','sed','expr', for "Configure"

8. I want sugar: $ref->{'a', 'b', 'c') = qw ( x y z )

9. Tom Christiansen's 'man' package

10. shell's 'find' in perl

11. (newbie) Don't understand '$_'

12. IMAPClient: Can't locate 'new'?


Powered by phpBB® Forum Software