|
|
#! /bin/bash
#By swztdza 2020-10-20
#Ver 0.2
if [ -z $1 ];then
echo "plese input Chinese"
else
nohup curl http://dict.youdao.com/w/$1/#keyfrom=dict2.top | head -200 | grep '#keyfrom=E2Ctranslation' > /tmp/test.txt 2> /dev/null
echo "$1 interprte Chinese as follow:"
cat /tmp/test.txt | awk '{print $4,$5,$6}' | sed 's/href=".*=E2Ctranslation">//' | sed 's/<\/a>//'
|
|