Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: search and replace "carriage return"
Date: Tue, 04 Feb 2014 15:01:33
Message-Id: lcqvas$hag$1@ger.gmane.org
In Reply to: Re: [gentoo-user] search and replace "carriage return" by Alan McKinnon
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

Replies

Subject Author
Re: [gentoo-user] Re: search and replace "carriage return" Joseph <syscon780@×××××.com>