Chomp alternatives? Remove newline/carriage-returns
Is there a command that I can use through the command prompt to remove all newlines from a file? I would like the text in a text file to be in one straight line.
Is there a perl script that I could use that would accomplish the same thing? I don't know how to pass a file to chomp, so I would appreciate it if the code could be shown to me.
Any other ways that you can think of? The KATE editor does not remove newlines, unfortunately.
Thank you for reading!