The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Logfile - extracting certain lines to concatenate into 1 line
.
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
:
Logfile - extracting certain lines to concatenate into 1 line
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
03-18-2009
pmm
Registered User
Join Date: Dec 2008
Posts: 50
Following on your awk script - use printf:
Code:
awk '/Diags begin/{getline;printf};{if ($2=="(123)") print ","$1,$2,$3,$4}'
pmm
View Public Profile
Find all posts by pmm
Find pmm's past nominations received
Find pmm's present nominations given