Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

specifying which lines to print? 1

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
US
I have a script that re-formats comma-delimited data as follows:

Code:
BEGIN{
  FS=",";OFS=",";
}
{
   gsub(" 0:00:00","") ;$3=tolower($3);$14=tolower($14);$16=tolower($16); print
}

I'd like to change the print statement to OMIT the 1st line of the file...

I know this is easy stuff here; but I'm not finding a working sollution...

TIA,

-Allen
 
BEGIN{
FS=",";OFS=",";
}
NR>1 {
gsub(" 0:00:00","") ;$3=tolower($3);$14=tolower($14);$16=tolower($16); print
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top