Add separators between printed fields (awk)
awk -v SEPARATOR="," '{print $1 " " SEPARATOR " " $2 " " SEPARATOR " " $3}'
Adds the specified separator (a comma) between the printed fields ($1, $2, and $3) in the output.
awk -v SEPARATOR="," '{print $1 " " SEPARATOR " " $2 " " SEPARATOR " " $3}'
Adds the specified separator (a comma) between the printed fields ($1, $2, and $3) in the output.