I need to replace 2 things from a csv file using Unix shell scripting ; one is Y with 'Y and the newline character by ',' value..
my csv:(values will be one below another vertically and all values start with Y)
YC1234
YC5678
expected output is NEEDED IN A LINE horizontally like :
'YC1234','YC5678'
kindly help as i am new to shell scripting...
i tried sed by its difficult in removing newline
cat master_upd.csv | sed -e 's//'\'','\''/g' | sed 's/\n/ /'