Google Translate

translate() { lng1="$1";lng2="$2";shift;shift; wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=${@// /+}&langpair=$lng1|$lng2" | sed 's/.*"translatedText":"\([^"]*\)".*}/\1\n/'; }
allow multiword translations
Sample Output
$ translate en de I am looking for a table

8
By: bandie91
2010-05-02 22:15:30

6 Alternatives + Submit Alt

What Others Think

help! google translate's new feature, latin language not works, neither source nor target language. it responses: invalid translation language pair. i use "la" language code
bandie91 · 548 weeks and 6 days ago
Google translator is really helpful. You can easily change the language and can take help from it to understand the meaning of any sentence. So I like it very much and it's great I think. No other the best resume service application is providing the same content. Google is best!
DianaLopez · 41 weeks and 5 days ago
The most settled PC game is taken 3 which I used to play in mid 1900s and still spellbound with this game. Visit homepage for more info. Your retrogressive can do abrupt battle on you in this game and you should be prepared for that. I love to play this and some different games like this like internet wrestling.
Ahmed74 · 9 weeks and 1 day ago
A parent should be creative and as attentive as could be depended after contemplating the current condition to make learning an enchanting activity for his immaturity. Once visit home for more info. He ought to guarantee that his young adult is learning while at the same time making some astonish encounters.
Ahmed74 · 9 weeks and 1 day ago
An understudy online course program may be boggling to you considering the room and comfort it gives. You can visit homepage for more info. By far by far most of individuals get demolished. In any case, it should be seen that web coordinating model isn't basic.
Ahmed74 · 9 weeks and 1 day ago
Finding the ideal framework for doing the Capstone Project has satisfied me extra. Visit http://www.grammarcheckonline.net/poem-grammar-checker/ for getting wonderful info. Starting at now, I would have the decision to finish this whole undertaking without gobbling up a huge store of time.
Ahmed74 · 5 weeks and 5 days ago
Visiting such grumblings is perceived for understudies who need to get making tips. There are a great deal of decisions. You can visit https://www.passivevoicechecker.com/top-rated-complex-sentence-generators-in-2019/ more details. We basically need to examine them.
Ahmed74 · 5 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: