Mailinglist Archive: opensuse (3625 mails)

< Previous Next >
[opensuse] Another awk question
  • From: "Greg Freemyer" <greg.freemyer@xxxxxxxxx>
  • Date: Tue, 24 Jun 2008 11:44:22 -0400
  • Message-id: <87f94c370806240844h1ea64b9dl8668e45afc131516@xxxxxxxxxxxxxx>
All,

I have a data file with variable number of fields per line.

I only need to process (change) the first 2 fields, then I want to
print the rest of the line the way it was.

Is there a way I can say "print $3 - $NF" or something similar.

I do need the Field separator inserted between fields.

Thanks
Greg
--
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups