Created
September 22, 2011 11:49
-
-
Save 46bit/1234608 to your computer and use it in GitHub Desktop.
TG: my old helper, not very nice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name=$1 | |
#random=$RANDOM + $RANDOM + $RANDOM | |
md5name=`md5 -s "${name}" | grep -o "[a-z0-9]\{32\}"` | |
md5name="${md5name}.png" | |
echo "http://r.46bit.com/${md5name}" | |
scp "$name" user@server:"/path/to/destination/${md5name}" | |
#echo "http://host/${md5name}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment