On 02/03/14 18:52, Mike Gilbert wrote:
On Mon, Feb 3, 2014 at 6:14 PM, Joseph <syscon...@gmail.com> wrote:I have a text file. How do I search and replace "carriage return"?Do you mean carriage return (decimal 13) or line feed (decimal 10)? The former is pretty simple: sed -e 's:\r: :g' foo.txt
I've found this worked for me: cat 16.txt | tr '\n' ' ' > 18.txt -- Joseph