Author: Shaun Fielder
Date: 18:23:54 09/13/01
Go up one level in this thread
>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.