sprunge.sh 248 B

12345678910111213141516
  1. #!/bin/bash
  2. if [ -z "$1" ]
  3. then
  4. exec curl -s -F 'sprunge=<-' http://sprunge.us
  5. else
  6. if [ -z "$2" ]
  7. then
  8. echo -n "$1:"
  9. cat "$1" | "$0"
  10. else
  11. for i in "$@"
  12. do
  13. "$0" "$i"
  14. done
  15. fi
  16. fi