How can I get the original language of the text?
I know I can use -id and that is showing the Name, Family, Writing system, Code etc but I need only the Code from this list.
trans -id "how are you today?" -no-auto
So if I write the above thing in shell I get this list and I want only know the Code (en):
Name English
Family Indo-European
Writing system Latin
Code en
ISO 639-3 eng
SIL https://iso639-3.sil.org/code/eng
Glottolog
https://glottolog.org/resource/languoid/id/stan1293
CodePudding user response:
$ trans -id "how are you today?" -no-auto | grep Code | awk '{print $2}'
