I have a file on my Ubuntu machine where I've marked the start of some lines using '@':
@A bbb @B bbb @D ccc
I want to remove the new lines at the end of lines starting '@' so the above file becomes
@Abbb @Bbbb @Dccc
I can match the lines starting @ using sed:
sed /^@/ ...
but I'm lost at trying to find the way to remove the new line character at the end of the string.
There must be a way of doing this easily using
sed without having to manually open the file in a text editor and remove them myself.