home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!ukma!gatech!purdue!mentor.cc.purdue.edu!sage.cc.purdue.edu!davisre
- From: davisre@sage.cc.purdue.edu (Robert Davis)
- Subject: Re: Another sed question.
- Message-ID: <C1J8Lu.EIr@mentor.cc.purdue.edu>
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University Computing Center
- References: <1993Jan27.204753.23339@nmsu.edu>
- Date: Wed, 27 Jan 1993 21:49:05 GMT
- Lines: 17
-
- In article <1993Jan27.204753.23339@nmsu.edu> jsz@scf.nmsu.edu (Henri De Valois) writes:
- >
- > I am trying to write a script,that would append to each EOL
- > some string,say `blah'. but when I do "sed -e 's/^/blah/g' inputfile > outputfile"
- > `blah' inserts at the begining of each line.
-
- Use s/$/blah/
-
- ^ matches the beginning of the line
- $ matches the end of the line
-
-
- Rob
- --
- | Robert Davis davis@sonata.cc.purdue.edu
- | "Look up, Hannah. Look up." NeXT Mail accepted
- --
-