Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: sed commands in Linux. (Slightly Off Topic)

Author: Heiner Marxen

Date: 16:32:57 09/13/01

Go up one level in this thread


On September 13, 2001 at 16:03:21, Slater Wold wrote:

>Cleaning somethings up, and wondered if anyone here knew how to add lines using
>sed in Linux.
>
>I search, find, replace, and then I want to add 2 or 3 lines of text at the
>bottom of that file.
>
>Any help will be appreciated.
>
>
>PS Of course I looked everywhere I knew to look.  But I know someone on here
>will know.  :)

Use the a or i command.  Those are explained in the man page
quite early.  You have to write a backslash \ at the end of all text
lines except for the last text line.

HTH.

Heiner



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.