summaryrefslogtreecommitdiff
path: root/bin/ppaste
blob: 991cc7388fcaf7e444514d0ef8a01c939b39797a (plain)
1
2
3
4
5
6
7
8
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