From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Grahn Newsgroups: gmane.emacs.help Subject: Re: Why can't I use xargs emacs? Date: 6 Feb 2010 07:45:08 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265521776 13986 80.91.229.12 (7 Feb 2010 05:49:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 05:49:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 07 06:49:33 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ne01V-00029r-Hl for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 06:49:33 +0100 Original-Received: from localhost ([127.0.0.1]:46065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ne01V-0005SM-4D for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Feb 2010 00:49:33 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: individual.net 8nEsb1qNGT3M3TRI8RkaEwUJqSQ2miV6jrQof7lHh+gBegw3wD Cancel-Lock: sha1:0J2SSVtGgebQtIxmAcpKp/WYX3g= User-Agent: slrn/pre0.9.9-111 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:176641 X-Mailman-Approved-At: Sun, 07 Feb 2010 00:49:05 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71718 Archived-At: On Wed, 2010-02-03, Adam Funk wrote: > On 2010-02-03, Thierry Volpiatto wrote: > >> Why not a simple: >> >> emacs -nw -Q $(find . -name '*.txt') > > That works, thanks. I'd forgotten about the $(...) construction. In the most popular shells, yes. You'd have to use backticks in tcsh. >> Why do you want to use xargs? > > Because that's what I always do (except for this, now) when I want to > find or grep -l some files and fire a command at them all. "Fire command at many files" isn't exactly what xargs does. It's really for filtering. 'xargs foo' may choose to execute foo many times (an infinite number of times if its own input is infinite) since all that matters is "I want on stdout the results of applying foo to all those files, in sequence". /Jorgen -- // Jorgen Grahn O o .