I saw this: How can I replace a newline (\n) using sed?, and figured I would try to use tr
to replace newlines with ',
.
The file looks like this:
something
newline
newline again
and I want it to look like this:
something',
newline',
newline again',
So, I tried these:
tr "\n" "'," < myfileabove
tr "\n" "\'," < myfileabove
Neither of them does what I'd like....am I doing something wrong?