Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!ulysses!mhuxt!ihnp4!houxm!hjuxa!pzl
From: pzl@hjuxa.UUCP
Newsgroups: comp.unix.questions
Subject: Re: Append file commands for ex/vi
Message-ID: <616@hjuxa.UUCP>
Date: Tue, 13-Jan-87 09:30:30 EST
Article-I.D.: hjuxa.616
Posted: Tue Jan 13 09:30:30 1987
Date-Received: Thu, 15-Jan-87 19:32:46 EST
References: <2333@dalcs.UUCP>
Distribution: na
Lines: 18
Keywords: append command unix ex vi

In article <2333@dalcs.UUCP>, lane@dalcs.UUCP (John Wright/Dr. Pat Lane) writes:
>
>Is there a way to append a range of text to a file from vi/ex (as opposed
>to 'w' which writes or over-writes)?
>
	try in vi 
	: nn,mm w >> filename
	where nn->mm are your range of lines

	Also, you may be interested in this:
	to append the result of a shell command after the current line:

	: . r ! progname
-- 
----------------------------------------------------------
|Pete Lega, DEC, Holmdel, NJ {normal disclaimers apply}  |
|{backbone}!clyde!hjuxa!pzl                              |
----------------------------------------------------------