defaults read -g AppleLanguages
produces something like this:
(
en,
de
)
I'd like to extract just the first element, in this case "en",
defaults read -g AppleLanguages | awk '/\(/ , /,/'
but awk always includes the search patterns. What can I do to produce just "en"?
Aucun commentaire:
Enregistrer un commentaire