19.05.2022 15:59, Philip Hands wrote: ...
Actually, I'm unable to resist the urge to remove the redundant use of cat (that was already there), so how about doing it in a single sed:LEVEL=$(sed "/^${LOCALE%%_*}/"'{ print $4 ; exit }' /usr/share/localechooser/languagelist)
That smells like awk usage, not sed ;) /mjt