Why not just do the whole thing in awk?  When I have more time, maybe
later tonight, I can write up an example script.

E


On Tue, 16 Oct 2001, John Hunter wrote:

> >>>>> "tack" == tack  <[EMAIL PROTECTED]> writes:
>
>     tack> what's the desired output?  tack
>
>
> >From the code in the loop in OP
>
>         echo "column 1 is $col1 and column 2 is $col2"
>
> should output
>
> column 1 is 22 and column 2 is ssh
> column 1 is 25 and column 2 is smtp
> column 1 is 80 and column 2 is http
>
> But I would also like to handle the case where the second
> column is left empty.
>
> I think I can handle the column 1/2 thing with awk.  It looks like the
> problem is in the variable 'lines'.
>
> JDH
>

-- 

Erik Curiel
Sometime Web Engineer/Almost Philosopher

"O, little rose-tree, bloom!
Summer is nearly over.
The dahlias bleed,
The phlox is seed,
Nothing is left of the clover.
And the path of the poppy no one knows---
I would blossom if I were a rose."

   ---Edna St. Vincent Millay
      "Three Songs from 'The Lamp and the Bell'"


Reply via email to