I have a file that has fields separated by two or more space characters. Some of the fields contain a single space.
I'm puzzled how I could get awk to recognize 2 or more spaces as the field separator.
awk -F " " doesn't do it for me.
Given this data:
record1 record2 this is record three record4
I am trying to get this result:
field1=record1
field2=record2
field3=this is record three
field4=record4
Ideas?
I'm puzzled how I could get awk to recognize 2 or more spaces as the field separator.
awk -F " " doesn't do it for me.
Given this data:
record1 record2 this is record three record4
I am trying to get this result:
field1=record1
field2=record2
field3=this is record three
field4=record4
Ideas?