I need solve this line in code…
INPUT=“SELECTED FILE IN FINDER OR PATHFINDER”
#Change this to your CloudApp Username
CLOUD_USERNAME="mycloudappid"
#Change this to your CloudApp Password
CLOUD_PASSWORD="mypassowrd"
#Change This to your Dropbox UserID
DROPBOX_ID="mydropboxuserid"
INPUT="SELECTED FILE IN FINDER OR PATHFINDER"
FILE=`basename "$INPUT"`
ENCODED_FILENAME=${FILE// /%20}
DROPBOX_URL="http://dl.dropbox.com/u/$DROPBOX_ID/$ENCODED_FILENAME"
cp "$INPUT" ~/Dropbox/Public/
LINK=$(curl -s --digest -u $CLOUD_USERNAME:$CLOUD_PASSWORD \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d \
'{
"item": {
"name": "'$DROPBOX_URL'",
"redirect_url": "'$DROPBOX_URL'"
}
}' \
"http://my.cl.ly/items")
SHARE=`echo $LINK | grep "content_url" | awk 'BEGIN { FS = "," } ; { print $13}' | awk -F\" '{print $(NF-1)}'`
echo $SHARE | tr -d '\n' | pbcopy
echo "Listo para compartir en Dropbox!"
echo $SHARE
Some help?