Looking for quick way of editing a text file

Paul Smith phhs80 at gmail.com
Sun Nov 20 18:49:22 UTC 2005

On 11/20/05, Gilboa Davara <gilboada at netvision.net.il> wrote:
> > >Try tr(1), sed(1) and awk(1).
> > >
> > >To replace a single line (or part of it):
> > >cat file.txt | sed 's/old_line/new_line/g' > newfile.txt
> > >
> > nano is an easy and quick editor. The commands are simple, ^o to write
> > out and ^x to quit. The program is installed by default.
> The OP said:
> "Is there some quick way of editing a specific line of a text file **without** using a text editor?"
> I believe nano qualifies as a text editor, am I wrong? ;)

Thanks to all for your suggestions.


More information about the users mailing list