#!/bin/bashs="abc" awk '{ print NR==1 ? $0"," : $0 }' <<< "$s" sed '1s/$/,/' <<< "$s"
Standard input is empty
a, b c a, b c
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!