| Jürgen Kahrs 2005-01-20, 3:56 pm |
| rudz wrote:
> am new to awk, have been asked to write a shell script to grab columns of
> data from a report,
>
> 1) The report contains a header which i have no use of, i need to trim it
> to get to the actual columns
Use getline to "consume" the header off the file.
> 2) two sample columns on the report looks like this
> Book Value Market Price
> ---------- -------------
> (6,825.51) 1.000 AUD
> 8,363.79 1.000 CAD
> (138.52) 1.000 CAD
> 45,454.08 1.000 GBP
> 68,533.42 1.000 GBP
> (12,675.93) 1.000 GBP
$2 contains the value of the second column.
> can somebody please help and suggest an approach, any help would be
> greatly appreciated, thanks
It is obvious that you posted here before reading
a tutorial. Read any tutorial about AWK and you
should at least have an idea on how to approach
the problem.
|