From: | Mike Gilbert <floppym@g.o> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] search and replace "carriage return" | ||
Date: | Mon, 03 Feb 2014 23:52:54 | ||
Message-Id: | CAJ0EP41nGVeJ+JDYyHiq8c43RPjS7t28gjNTs2PG0OqUyn9JKg@mail.gmail.com | ||
In Reply to: | [gentoo-user] search and replace "carriage return" by Joseph |
1 | On Mon, Feb 3, 2014 at 6:14 PM, Joseph <syscon780@×××××.com> wrote: |
2 | > I have a text file. How do I search and replace "carriage return"? |
3 | > |
4 | |
5 | Do you mean carriage return (decimal 13) or line feed (decimal 10)? |
6 | |
7 | The former is pretty simple: |
8 | |
9 | sed -e 's:\r: :g' foo.txt |
Subject | Author |
---|---|
Re: [gentoo-user] search and replace "carriage return" | Joseph <syscon780@×××××.com> |
Re: [gentoo-user] search and replace "carriage return" | Joseph <syscon780@×××××.com> |
Re: [gentoo-user] search and replace "carriage return" | Joseph <syscon780@×××××.com> |