I tried to replace end of lines in a file with single quote + comma.
Content of test.txt file:
aaa
bbb
ccc
Expected result:
aaa',
bbb',
ccc',
I managed to replace the end of lines with comma like this:
sed 's#$#,#g' test.txt
but i always fail when trying to convert to single quote + comma.
I tried: sed 's#$#',#g' test.txt
but the command still awaiting input.
I tried various combination with quotes and double quotes but still fail.
I'd really appreciate your help. thanks.