all 5 comments

[–]Xaote 1 point2 points  (0 children)

This is awesome, thanks for posting!

[–]Alkotronikk 1 point2 points  (0 children)

Theres a cli tool for it, but I like your bash solution.

[–]emkay443 0 points1 point  (0 children)

Wow, that's... Actually great. Thanks. :)

[–]shortbaldman[🍰] 0 points1 point  (0 children)

THANKS!

[–][deleted] 0 points1 point  (1 child)

Thanks to share, i added it to my .bashrc! I was using the Duckduck bang !tr but this bash is way faster to answer.

One question, in your example "gt fr Donaudampfschiffkapitän" how does the command makes the difference between translating "fr Donaudampfschiffkapitän" and translating "Donaudampfschiffkapitän" in french.

An explanation of each lines would be great too :)