1 |
On 2014-02-03, Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
2 |
> On 04/02/2014 01:14, Joseph wrote: |
3 |
>> I have a text file. How do I search and replace "carriage return"? |
4 |
>> |
5 |
> |
6 |
> |
7 |
> That is a horrible one to solve :-) |
8 |
> |
9 |
> All the usual tools (grep, sed, tr) are line oriented so they will take |
10 |
> one line and replace the CR at the end with something else plus a CR! |
11 |
|
12 |
No they won't. EOL in Unix is linefeed. CR is treated as a normal |
13 |
character by grep sed tr and so on. |
14 |
|
15 |
-- |
16 |
Grant Edwards grant.b.edwards Yow! I'm having an |
17 |
at emotional outburst!! |
18 |
gmail.com |