A text file has contents something like
chair table pen desk
Now i want it to be changed and stored in a variable say
var as below
is it possible?
EDIT Jofel's anser gave following error
$ sed ':a;N;$!ba;s/\n/,/g;s/\w*/(''&'',''&'')/g' -i csclm.txt sed: The label :a;N;$!ba;s/\n/,/g;s/\w*/(&,&)/g is greater than eight characters.
I am using :
$ uname -a HP-UX rcihp145 B.11.23 U 9000/800 3683851961 unlimited-user license