From: "Spider (D.m.D. Lj.)" <spider@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Simple command line stuff
Date: Tue, 11 Oct 2005 10:09:35 +0200 [thread overview]
Message-ID: <1129018175.8410.2.camel@Darkmere.darkmere> (raw)
In-Reply-To: <434B68EB.6000903@mykitchentable.net>
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
On Tue, 2005-10-11 at 00:25 -0700, Drew Tomlinson wrote:
>
> Oh, and another thought. The "find" command can do this for you as
> well, IIRC.
find . -type f -iname '*.wav' -exec command "{}" "{}".foo \;
is the syntax, IIRC. Note the \ that exists to escape the
semicolon, therefore telling find to end processing.
find . -type f -iname '*.wav' |while read LIST; do command "${LIST}"
"${LIST/old/new}" ; done
is another possibility. Adding limiters to "find" can prevent it from
recursing too deeply.
//Spider
--
begin .signature
Tortured users / Laughing in pain
See Microsoft KB Article Q265230 for more information.
end
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-10-11 8:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-10 2:06 [gentoo-user] Simple command line stuff Mark Knecht
2005-10-10 2:18 ` Jason Cooper
2005-10-10 2:20 ` Brett I. Holcomb
2005-10-10 2:22 ` Daniel Lynch
2005-10-10 2:32 ` Jason Cooper
2005-10-10 3:09 ` Nick Rout
2005-10-10 7:59 ` Neil Bothwick
2005-10-10 9:00 ` Spider (D.m.D. Lj.)
2005-10-10 14:57 ` Mark Knecht
2005-10-11 7:25 ` Drew Tomlinson
2005-10-11 8:09 ` Spider (D.m.D. Lj.) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1129018175.8410.2.camel@Darkmere.darkmere \
--to=spider@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox