Author: Slater Wold
Date: 19:06:14 09/13/01
Go up one level in this thread
On September 13, 2001 at 21:23:54, Shaun Fielder wrote: >>I search, find, replace, and then I want to add 2 or 3 lines of text at the >>bottom of that file. > >sed 's/old/new/g;$a\ >line1\ >line2\ >line3' < input_file > output_file > >Hope this gives you enough of an idea as to how to combine these operations in >sed. (Pay careful attention to how I've used quotes, backslashes and newlines in >my example.) > >Shaun
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.