且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

单个邮件unix中带有多个附件的mutt命令

更新时间:2023-11-21 20:57:28

Mutt不支持这种语法,但这并不意味着它是不可能的.您只需要构建mutt命令即可.

Mutt doesn't support such syntax, but it doesn't mean it's impossible. You just have to build the mutt command.

mutt -s "subject" $( printf -- '-a %q ' *.csv ) ...

$( ... )中的命令产生如下内容:

The command in $( ... ) produces something like this:

-a aaa.csv -a bbb.csv -a ...