zsh ftw
We have some pictures
$ touch {a,b,c,d}.jpg
and want to send them by mail
$ mailx -a a.jpg -a b.jpg -a c.jpg -a d.jpg \
> recipient1@example.com recipient2@example.com
pretty much typing, eh? Zsh to the rescue:
$ mailx *.jpg(P:-a:) recipient1@example.com recipient2@example.com
or, just the pictures of the last 5 days:
$ mailx *.jpg(P:-a:m-5) recipient1@example.com recipient2@example.com
print "I \u2764 ZSH"