Skip to content

Instantly share code, notes, and snippets.

@zvineyard
Created July 19, 2012 17:59
Show Gist options
  • Save zvineyard/3145677 to your computer and use it in GitHub Desktop.
Save zvineyard/3145677 to your computer and use it in GitHub Desktop.
Bash: Send an Email Attachment from Command line with mailx
#!/bin/bash
uuencode /file.csv /file.csv | mail x -r "[email protected]" -s "Subject" [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment