Sending attachments from the Unix/Linux command line

Here’s how:

Source machine:

  1. zip all_my_files.zip file_*
  2. uuencode all_my_files.zip all_my_files.uu | mail my@email.address

Destination machine – download zip then:

  1.  uudecode -o all_my_files.zip all_my_files.uu

… and you’re done!