[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why can't I use xargs emacs?
From: |
Jorgen Grahn |
Subject: |
Re: Why can't I use xargs emacs? |
Date: |
6 Feb 2010 07:45:08 GMT |
User-agent: |
slrn/pre0.9.9-111 (Linux) |
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 <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
Re: Why can't I use xargs emacs?, Bit Twister, 2010/02/03
Re: Why can't I use xargs emacs?, hymie!, 2010/02/04
Re: Why can't I use xargs emacs?, David Combs, 2010/02/10