19.05.2022 17:23, Philip Hands wrote:
Michael Tokarev <m...@tls.msk.ru> writes:
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 ;)
Doh!
I started out with awk, as it's cleaner for this, and then noticed that
we don't have awk enabled in d-i's busybox, so changed to sed.
Is there a reason we don't have awk in busybox? Maybe it's time to enable it?
Some stuff, like this one, is really easier to do with awk.
(and I'm still waiting for a reply from Chris Boot about busybox).
Thanks,
/mjt