Append file commands for Unix & ex/vi

broome at daffy.UUCP broome at daffy.UUCP
Thu Jan 15 07:43:50 AEST 1987


You don't need to use aliases or even shell commands -- to append text to 
an existing file in vi, simply say "'a,'b w >> file" ...

This assumes that you've marked the range with "a" & "b", but you can also
use the other usual ways of naming lines (numbers, ".", "$", etc.) 
You can also leave out the range altogether and append the entire current
file onto the other file, like so: "w >> file".

Hope that helps...


==============================================================================
Jonathan C. Broome                         Abel Image Research, Hollywood, Ca.

        {cogsci.berkeley.edu, randvax, styx} \
                                              !abel!{broome,root,uucp,etc ...}
          {celerit, culler, omnilax, vortex} /
==============================================================================



More information about the Comp.unix.questions mailing list