Advertisement
Guest User

Untitled

a guest
Jun 26th, 2015
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. extension="${1##*.}"
  4. randint=$RANDOM
  5.  
  6. cp "$1" "/var/www/up/$randint.$extension"
  7.  
  8. echo -n "http://what-ch.mooo.com/up/$randint.$extension" | xclip -selection clipboard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement