Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gt() {
- to="${1}"
- text=$(echo "${*}" | sed -e "s/^.. //" -e "s/[\"'<>]//g")
- res=$(wget -U "Mozilla/5.0" -qO - "http://translate.google.com/translate_a/t?client=t&text=${text}&sl=auto&tl=${to}" | sed 's/\[\[\[\"//' | cut -d \" -f 1)
- echo "${res}"
- }
Add Comment
Please, Sign In to add comment