From owner-freebsd-questions Tue Sep 24 15:48:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34A0537B401 for ; Tue, 24 Sep 2002 15:48:16 -0700 (PDT) Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC7C443E75 for ; Tue, 24 Sep 2002 15:48:15 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 2BC3828E2B for ; Tue, 24 Sep 2002 18:48:15 -0400 (EDT) Date: Tue, 24 Sep 2002 18:48:15 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: FreeBSD LIST Subject: no xargs -i flag Message-ID: <20020924184251.J64949-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm surprised that xargs has no flag for interactive mode (-i) so that the command line will be echoed to the terminal asking [y/n/!] where y means yes proceed and n means no stop now and ! would mean answer y to all remaining promptings. If the command passed to xargs *includes* something like "mv -i" will xargs run interactively? Sort of unrelated, but what if you wanted to pass something like `grep -i something each_xarged_file | mail -s output $USER` as opposed to just `grep -i something each_xarged_file`? That is, how do you let xargs know where to put the filename, if not at the end of the command line? It isn't clear from the manpage or examples I've browsed. Thanks. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message