awk OFS - Output Field Separator


Example

Used by awk to separate fields output by the print statement. For example:

echo "a b c
d e f" | awk 'BEGIN {OFS="-"} {print $2, $3}'

produces:

b-c
e-f

The default value is , a string consisting of a single space.