[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] RE: [linux-users] Replacing a block of text in a file with text
On Tue, Aug 10, 2004 at 04:23:19PM +0100, Ted Harding wrote:
>
> $ cat test.in | awk '{print $0} ; /zmatrix angstrom/{exit}' > output.txt
> $ cat basis.txt >> output.txt
> $ echo "end" >> output.txt
>
What about for a test.in file of
Keep this
zmatrix angstrom
Get rid of this
end
Keep this as well
--
Hulver's site. Community blogging site running scoop.
http://www.hulver.com/scoop/
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.