|
The
AWK script below will do this. Save it into a file called "addnums",
make it executable with chmod +x, and run it with:
addnums datafn
where
datafn in the name of the file with the data in it.
#!/bin/awk -f
NR == 3 {
num1 = $2; } NR == 6 {
print $2 + num1; exit; } Craig Southeren ------------------------------------------- Equivalence - Home of FireDoor, MibMaster & PhonePatch For Open Source H.323 - see http://www.openh323.org Email: [EMAIL PROTECTED] Web: http://www.equival.com.au Fax: +61 2 4368 1395 Voice: +61 2 4368 2118 -----------------------------------------------------
|
- [SLUG] addition using script file Shrestha
- Re: [SLUG] Re: addition using script file Craig Southeren
- Re: [SLUG] Re: addition using script file Raoul Golan
- RE: [SLUG] Re: addition using script file Craig Southeren
- RE: [SLUG] Re: addition using script fileRE:... Craig Southeren
- Re: [SLUG] Re: addition using script fileRe: [SL... Raoul Golan
