Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们可以压缩多个文本文件并在单个 linux 命令中作为邮件发送吗?我尝试了一些东西uuencode,但没有成功。
uuencode
这就是我使用的
tar cz *.txt | uuencode tarball.tgz - | mail -s "The text files you requested" target@destination.com
如果我没记错的话,7z 有一种方法可以将压缩文件直接创建到标准输出,就像所示的 tar 命令一样