Query The Score Of College English Test In China By 2009.08
Join the DZone community and get the full member experience.
Join For Free// description of your code here
in bash.
// insert code here..
#!/bin/bash
if [ $# -ne 1 ]; then
echo 'usage: ./cetquery.sh 01234567890'
exit 1;
fi
info=`curl http://cet.99sushe.com/getscore.html -s -e http://cet.99sushe.com -d "id=$1"|iconv -f gb2312 -t utf8`
echo $info|awk -F, '{ print "å¬åŠ›ï¼š"$1 "\n阅读:"$2 "\n综åˆï¼š"$3 "\n写作:"$4 "\n总分:"$5 "\n妿 ¡ï¼š"$6 "\nå§“å:"$7 }'
Testing
Database
ENGLISH (programming language)
Opinions expressed by DZone contributors are their own.
Comments