Guest User

reddit

a guest
Jan 20th, 2015
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. function gt() {
  2.         to="${1}"
  3.         text=$(echo "${*}" | sed -e "s/^.. //" -e "s/[\"'<>]//g")
  4.         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)
  5.         echo "${res}"
  6. }
Add Comment
Please, Sign In to add comment