RE: Quick question on awk usage





-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx on behalf of Bliss, Aaron
Sent: Tue 06/27/2006 11:00 AM
To: redhat-list@xxxxxxxxxx
Cc:
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;

-----------------------------------



awk -F'<tab>' '$12 == 575 {print $0}' file

Don't type <tab>, simply press the TAB key on your keyboard

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

Relevant Pages

  • Re: Ion3 a good light GUI.
    ... If you use `apt-cache search' from a command line, you can try searching for your applications that way. ... Workspaces are helpful: I keep my GAIM buddy list, terminal from which I play music, and Thunderbird in a separate workspace. ... I installed Ion3 a few weeks ago already now, and when running several greedy applications at same time, such as Thunderbird, Firefox, plus Blender and Galeon, just now, Ion3 allows my machine not to get stocked with a freezed GUI. ... To open one more tab it's with mouse or with Ctrl+Shift, and all applications open in new tabs beside one to the other. ...
    (Ubuntu)
  • Re: Installing Net Framework Service Pack 1
    ... You *do* have a valid install of 1.1, ... We had already established that I had changed the ASP.NET tab to 1.1.4322, ... That's not a registry command. ... It's a command to configure a virtual app as an app which will use the .Net Framework 1.1. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Installing Net Framework Service Pack 1
    ... You *do* have a valid install of 1.1, ... We had already established that I had changed the ASP.NET tab to ... That's not a registry command. ... Here I try to enter the directory where the Net Framework 1.1 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Installing Net Framework Service Pack 1
    ... You *do* have a valid install of 1.1, ... We had already established that I had changed the ASP.NET tab to 1.1.4322, ... That's not a registry command. ... It's a command to configure a virtual app as an app which will use the .Net Framework 1.1. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DCL Coding Standards
    ... I also like the underscore when the label appears in a command. ... If the tab stops are off, reset them to the default of every 8 columns. ... other language processors may require spaces or TABs to delimit ...
    (comp.os.vms)