RE: Quick question on awk usage



Sorry, $14 == 528, not $12 (looks like the email client wrapped the line
also)

Aaron

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Bliss, Aaron
Sent: Tuesday, June 27, 2006 11:01 AM
To: redhat-list@xxxxxxxxxx
Subject: Quick question on awk usage

Hi everyone, I have a quick question on using awk from the command line;
I have a tab delimited file, and would like to know the syntax to print
the entire line only when $12 == 575; the syntax from the command line
to print only $1 would be cat security.log | awk '{print $1}' ; any
ideas (grepping for 578 won't be good enough since it's possible that
578 could appear somewhere else in the file) Thanks very much.

Aaron

Jun 25 15:54:02 ms-unix-s02.preferredcare.org MSWinEventLog 4
Security 263985 Sun Jun 25 15:54:02 2006 528
Jun 25 15:54:02 ms-unix-s02.preferredcare.org MSWinEventLog 4
Security 263985 Sun Jun 25 15:54:02 2006 575


Confidentiality Notice:
The information contained in this electronic message is intended for the
exclusive use of the individual or entity named above and may contain
privileged or confidential information. If the reader of this message
is not the intended recipient or the employee or agent responsible to
deliver it to the intended recipient, you are hereby notified that
dissemination, distribution or copying of this information is
prohibited. If you have received this communication in error, please
notify the sender immediately by telephone and destroy the copies you
received.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=subscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • SUMMARY: cron job output to BOTH email AND log file.
    ... The "tee" command is the way to go and the following is what does what I ... Grand Canal Plaza, Upper Grand Canal Street, Dublin, Ireland ... This electronic message contains information from ... If you are not the intended recipient be aware that any ...
    (SunManagers)
  • RE: Quick question on awk usage
    ... Quick question on awk usage ... I have a tab delimited file, and would like to know the syntax to print ... The information contained in this electronic message is intended for the ... is not the intended recipient or the employee or agent responsible to ...
    (RedHat)
  • RE: help on nautilus-cd-burner
    ... If you need to make an image file to burn you can run this command: ... This message and any attachments are intended only for the use of the ... If the reader of the message is not the intended recipient, ... dissemination of this communication is strictly prohibited. ...
    (RedHat)
  • RE: Configuring NIC Card
    ... reboot use the full path command and stick it in your /etc/rc.local file. ... If the reader of the message is not the intended recipient, ... We recently upgraded our network switch to a 10/100 Mbps switch. ...
    (RedHat)
  • RE: Trouble booting fresh Core 3 install
    ... now when adding the 'nofb' I got a ton of white dashes and then the waterfall of color. ... The waterfall happens directly and almost immediately after the GRUB boot command. ... intended recipient is prohibited. ...
    (Fedora)