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
The command I tried: cat 15.txt | tr '\n' ' ' > 18.txt
worked on one file but not on other files.
I've tried sed -e 's:\r: :g' 15.txt as well
doesn't work.
Here is text example from that file:
...
Their skulls were very blocky.
Teeth were
very small and leaf shaped.
In some, but not all ankylosaurs the end
of the tail was
modified to form a tail club with the huge
osteoderms at the tip.
...
--
Joseph