OFS on AWk not working

Hi,

on 10.6.7 with latest updates the output field separator is not working.

Example

$ echo a b c d | awk '{ OFS = ":";print $0}'

results in:

a b c d

instead of:

a:b:c:d

Mac OS X (10.6.7)

Posted on May 3, 2011 4:24 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

OFS on AWk not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.