Re: Formatting print with awk and ORS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



>awk -v q="'" ' BEGIN { ORS=" "; printf("%s", q) } { print "\"" $1 "\"" } END { printf("%s", q) } '
>or
>awk ' BEGIN { ORS=" "; printf("\x27") } { print "\"" $1 "\"" } END { printf("\x27") } '

Thanks JD!
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux