>>>>> "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
