The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Need to extract specific pattern from logfile
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Need to extract specific pattern from logfile
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-04-2009
radoulov
addict
Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,926
Code:
perl
-00ne' print join " ", /HOST=([^)]+)\) \(PORT=(\d+).*? SID=(\w+)/x, "\n" ' logfile
If the records are not separated by blank lines, remove the
00
option and argument.
Last edited by radoulov; 01-04-2009 at
01:30 PM
..
radoulov
View Public Profile
Find all posts by radoulov
Find radoulov's past nominations received
Find radoulov's present nominations given