awk ORS - Output Record Separator


Example

Used by awk to separate records and is output at the end of every print statement. For example:

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

produces:

b c|e f

The default value is \n (newline character).