中英文翻译脚本

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#! /bin/bash

#curl etoc.sinaapp.com/英文

url="ctoe.sinaapp.com/"
var=""$1
echo $var|grep ^[0-9A-Za-z]*$
if [ $? == 0 ] 
then
	url="etoc.sinaapp.com/"
fi
#echo ${url}

for var in $@
do
	url=${url}"%20"${var}
done

curl $url