Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!sri-unix!hplabs!sdcrdcf!randvax!abel!daffy!broome From: broome@daffy.UUCP Newsgroups: comp.unix.questions Subject: Re: Append file commands for Unix & ex/vi Message-ID: <24@abel.UUCP> Date: Wed, 14-Jan-87 16:43:50 EST Article-I.D.: abel.24 Posted: Wed Jan 14 16:43:50 1987 Date-Received: Mon, 26-Jan-87 02:12:20 EST References: <2275@brl-adm.ARPA> Sender: usenet@abel.UUCP Reply-To: broome@daffy.UUCP (Jonathan C. Broome) Organization: Abel Image Research, Los Angeles Lines: 19 Keywords: There's an easier way. 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} / ==============================================================================