1
이미지를 ImageShack에 업로드하고 BASH에서 사진의 hotlink를 반환하는 스크립트를 만드는 방법을 알아낼 수 없습니까? 나는 곱슬 곱슬을 사용하려고 생각하고있었습니다. 당신이 진행 표시 줄이 마음에 들지 않으면ImageShack 업로드를 자동화하십시오
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: `basename $0` filename"
exit
fi
image="$1"
mimetype=`file -b --mime-type $image`
curl -H Expect: -F "[email protected]$image;type=$mimetype" -F xml=yes -# "http://post.imageshack.us/" | grep image_link | grep -o http[^\<]*
, 그냥 -s
-#
교체 : 여기