infdeveloper
Programmer
Hello,
Could you please help me answer the question
I have a file like
x
y
z
I want it to append , at the end of each file except the last file
x,
y,
z
I am getting , at the end of each line with sed 's/$/,/' but I dont want it at end of the last line
Thanks
Could you please help me get this
Could you please help me answer the question
I have a file like
x
y
z
I want it to append , at the end of each file except the last file
x,
y,
z
I am getting , at the end of each line with sed 's/$/,/' but I dont want it at end of the last line
Thanks
Could you please help me get this