diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2017-11-23 14:37:08 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2017-11-23 20:53:58 -0500 |
commit | da5de992c22c2751bfd745b1753d61adcf878542 (patch) | |
tree | c95bc88be89cd74c2882b3a97a7945a93ce2752d | |
parent | 9645c9f3243bac22d0a4824384e6a3052d6c1cf8 (diff) |
add ppaste script
-rwxr-xr-x | bin/ppaste | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ppaste b/bin/ppaste new file mode 100755 index 0000000..991cc73 --- /dev/null +++ b/bin/ppaste @@ -0,0 +1,9 @@ +#!/bin/bash + + +url=$(cat | netcat termbin.com 9999 | tr -d '\0') +if [ "$url" ] +then echo $url | xclip -selection clipboard -rmlastnl + echo "paste uploaded to: $url (URL copied to clipboard)" +else echo "paste upload failed" +fi |