中英文翻译脚本

2019PHP高薪工程师学习路线图....>>>

#! /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