Is there a way to print all records separated by the OFS without typing out each column number.
#Desired style of syntax, undesired result [kbrandt@glade: ~
Sed equivalent:
$ echo "1 2 3 4" | sed 's/ /:-)/g'
Here's another option with awk:
$ echo "1 2 3 4" | awk '{ gsub(/\s/, ":-)")}1'