ORS - AWK Output Record Seperator in UNIX

ORS is a special variable in AWK, by default ORS is a newline character, however this can be changed.

Value of ORS can be changed in BEGIN block

Example : Convert list of names to comma separated
awk 'BEGIN{ORS=","}1;' newFile


Working Example