如何獲得文本的原始語言?
我知道我可以使用 -id 并顯示姓名、家庭、寫作系統、代碼等,但我只需要此串列中的代碼。
trans -id "how are you today?" -no-auto
因此,如果我在 shell 中撰寫上述內容,我會得到這個串列,我只想知道代碼(en):
英文名稱
家庭印歐語系
拉丁文書寫系統
代碼 en
ISO 639-3 英文版
SIL https://iso639-3.sil.org/code/eng
Glottolog
https://glottolog.org/resource/languoid/id/stan1293維基百科 https://en.wikipedia.org/wiki/ISO_639:eng
uj5u.com熱心網友回復:
$ trans -id "how are you today?" -no-auto | grep Code | awk '{print $2}'
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/407715.html
標籤:
下一篇:使用sed取消注釋行
