Re: attach multiple files from command line
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, March 21 at 09:00 PM, quoth Eric Smith:
>You could get funky with zsh viz.
>
>files=( _chile_2007_*{626..631}*jpg _chile_2007_*{643,766,769}*JPG
>some_textfile_if_you_like.txt );
>mutt joe@xxxxxxxxxx {-a,$^files} -s "Fotos attached"
>
>Which is the zsh way to make an array and then interpolate the -a
Heh, not a bad thought. Here's the bash way to do the same thing:
files=( *.jpg *.JPG some_textfile.txt )
mutt joe@xxxxxxxxxx "${files[@]//#/-a }" -s "Fotos attached"
~Kyle
- --
If the president is the head of the American body politic, Congress is
its gastrointestinal tract. Its vast and convoluted inner workings may
be mysterious and unpleasant, but in the end they excrete a great deal
of material whose successful passage is crucial to our nation's
survival. This is Congress's duty.
-- Jon Stewart
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFGAZEqBkIOoMqOI14RAjq2AJ4kCxmSVHFjDj41OMLkl+Kbs8ee1gCfSAfk
Zt13HQUt2wVVTAAZa1TTxrU=
=g4Zv
-----END PGP SIGNATURE-----