Skip to content

Instantly share code, notes, and snippets.

@pbrisbin
Created October 16, 2010 00:45
Show Gist options
  • Select an option

  • Save pbrisbin/629231 to your computer and use it in GitHub Desktop.

Select an option

Save pbrisbin/629231 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ $# -lt 2 ]]; then
echo "usage: $0 [number] [some message]"
exit 1
fi
number="$1"; shift
echo "$*" | mail "$number@vtext.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment