Append file commands for ex/vi
pzl at hjuxa.UUCP
pzl at hjuxa.UUCP
Wed Jan 14 00:30:30 AEST 1987
In article <2333 at dalcs.UUCP>, lane at 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 |
----------------------------------------------------------
More information about the Comp.unix.questions
mailing list