Grep command

Luca liliana.perossa at fastwebnet.it
Thu Nov 16 00:58:33 PST 2006


Luca wrote:
> Hi all!
>
> Only a question about a grep command:
>
> I pass at console the following command:
> "grep -H ^title /usr/share/i18n/locales/* 2> /dev/null | awk -F '"' '
> sub(".*/", "", $1); sub("[\\.:].*", "", $1);' "
> and the output is like:
> aa_DJ:title Afar language locale for Djibouti (Cadu/Laaqo Dialects).
> then
> aa_ER at saaho:<desc>
> be_BY at latin
> br_FR at euro
> etc...
> but the entries are duplicate, example:
> ca_ES:title       Catalan locale for Spain
> ca_ES Catalan locale for Spain
> ca_ES at euro:title       Catalan locale for Catalonia with Euro
> ca_ES at euro Catalan locale for Catalonia with Euro
>
> and the ISO and UTF-8 are not showed.
>
> So, what should I add to the command to see only the:
> <ll>_<LL>.<iso-xxxx-xx> <euro variant> or <ll>_<LL>.<UTF-X>?
>
> Thanks,
> Luca
>   
I meant, just to be sure, what's to be added to see the entire list with
entries showed like the "locale -a" command but with the .utf8 .UTF-8
correction?



More information about the lfs-support mailing list