zsh-users
 help / color / mirror / code / Atom feed
* Adding Text to Each Match
@ 2005-12-12 15:39 Chris Johnson
  2005-12-12 16:21 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Johnson @ 2005-12-12 15:39 UTC (permalink / raw)
  To: zsh-users

Is there a non-loop way to replicate text for each filename matching a
pattern?  For example, I'm trying to generate e-mail messages with
attachments that match a pattern to send with mutt.  Each attachment
needs to be specified with the -a option.

   echo body | mutt -a file1_foo -a file2_foo \
                    -s "Here's your foo" username

Is there something in zsh that would let me say

   echo body | mutt [prefix all matches to *foo with -a] \
                    -s "Here's your foo" username

that would expand to the command listed above?

I think there's been some talk of this, but I don't know what to search
for in the archives.  Thanks for your help!

-- 
Chris Johnson
cjohnson@cs.utk.edu
http://www.cs.utk.edu/~cjohnson


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-15  4:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-12 15:39 Adding Text to Each Match Chris Johnson
2005-12-12 16:21 ` Bart Schaefer
2005-12-12 18:56   ` Peter Stephenson
2005-12-15  4:39     ` Bart Schaefer
2005-12-12 19:02   ` Chris Johnson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).