sed replacement
Jerry Feldman
gaf at blu.org
Mon May 16 09:44:25 EDT 2005
On Monday 16 May 2005 9:31 am, Robert La Ferla wrote:
> BTW - That should have been:
>
> cat myfile | sed -e "s/text/\n\ntext/"
First, you don't need to use cat.
I just tried it on my system: (here is a fragment of the file I used)
-------------------------
collection currently include compilers for the Ada, C, C++, Objective
C, Chill, FORTRAN, and Java languages. Unlike utilities such as p2c,
this is a true compiler, not just a converter.
--------------------------
sed -e "s/Chill/\n\nChill/" gpc.README
The result is:
collection currently include compilers for the Ada, C, C++, Objective
C,
Chill, FORTRAN, and Java languages. Unlike utilities such as p2c,
-------------------------------------------
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
More information about the Discuss
mailing list