From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id FAA29813 for ; Fri, 30 Jun 1995 05:06:31 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA24381 (5.65c/Gatech-10.0-IDA for ); Thu, 29 Jun 1995 14:48:41 -0400 Received: by math (5.x/SMI-SVR4) id AA14837; Thu, 29 Jun 1995 14:20:45 -0400 Old-Return-Path: Resent-Date: Thu, 29 Jun 1995 11:07:33 -0700 Old-Return-Path: From: "Barton E. Schaefer" Message-Id: <9506291107.ZM17946@zyrcon.z-code.com> Date: Thu, 29 Jun 1995 11:07:33 -0700 In-Reply-To: P.Stephenson@swansea.ac.uk "Re: how to get standard output used in command line editor?" (Jun 29, 5:33pm) References: <10428.9506291633@pyro.swan.ac.uk> Reply-To: schaefer@z-code.com X-Face: czU|*h"p8AX?4.I.yU.^s%TIMx|"-s,*'|#H^|e,QjE&!jL%<]:-.U/;khS%3a2BC5_d#)( mz=$$G0u9P&*N8cA~b[URf;lgKRif@#qEf[ltie#Gg0%6$b`e`k.Cgw:\qJx\\a7c(K7^3;gXW:e1@ J Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/37 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jun 29, 5:33pm, P.Stephenson@swansea.ac.uk wrote: } Subject: Re: how to get standard output used in command line editor? } } unpingco@ece.ucsd.edu wrote: } > } > Is there a way to use fc to edit the list generated by the find command } > and then use the newly edited list as a command? } } If you need an external editor, it doesn't look like fc will help If you know in advance that you're going to want to do this, invoke fc *first*, then run the "find" or whatever from inside your editor to capture the output, and edit it into commands as you will. You can even do this afterwards if you're willing to wait for the "find" to run again. Or you can do this: FINDOUT=/usr/tmp/find.$$ find() { command find $* | tee $FINDOUT } Then every time you run "find" the output gets captured for you, and you can "vi $FINDOUT" or whatever to edit it into commands. If you don't anticipate running finds that generate megabytes of output, you can use: find() { FIND="$(command find $*)" echo "$FIND" } Then "vared FIND" works, etc. -- Bart Schaefer Vice President, Technology, Z-Code Software schaefer@z-code.com Division of NCD Software Corporation http://www.well.com/www/barts