Question : add quotes to column and replace \n with comma
Answered by : shiny-skipper-n13cen680ymn
echo $(sed '$ ! s/.*/"&",/; $ s/.*/"&"/' foo.txt)
Source : https://stackoverflow.com/questions/27617110/adding-double-quotes-commas-and-removing-newlines | Last Update : Thu, 26 Aug 21