Awk Field Separators

Sharon Cubbage cubbage at se-sd.SanDiego.NCR.COM
Wed Aug 22 07:22:59 AEST 1990


Does anybody know how to specify more than one field separator in Awk?
I would like to specify to an Awk program to treat single spaces as well
as bars as field separators so that a string such as :

12 12 12 34|34|34

will be said to have 6 fields.  I've tried to create a regular expression
to handle both cases but it hasn't been working.

Any hints?

Thanks!
Sharon



More information about the Comp.unix.questions mailing list