[comp.unix.questions] Append file commands for ex/vi

pzl@hjuxa.UUCP (01/13/87)

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                              |
----------------------------------------------------------