awk RS - Input Record Separator


Example

This variable is used to set input record separator, by default a newline.

awk 'BEGIN{RS=","} {print $0}' file