in reply to Replacing ^L with \n
Because youre using the expression "some DOS text" I will (possibly mistakenly) assume that you are using a *nix. In which case, you can use perl but its sort of overkill. I would use sed(1).
of course, to create a ^L you actually need to do a ^V^L or your shell will assume you really mean ^L. Also, \n is native to the gnu sed, and may not work in BSD or ATT *nix's.[alex@creamy]$ sed 's:^L:\n:g' filename > filename.out
brother dep.
--
Laziness, Impatience, Hubris, and Generosity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replacing ^L with \n
by auzten (Initiate) on Apr 05, 2001 at 23:36 UTC |