Grep command

Luca liliana.perossa at fastwebnet.it
Thu Nov 16 06:02:06 PST 2006


Romain Thouvenin wrote:
> On 11/16/06, Luca <liliana.perossa at fastwebnet.it> wrote:
>> I'm trying some extra things, actually I've done for the punctuation:
>>
>> grep "$1/" SUPPORTED | cut -d" " -f1 | tr  '/' '.'
>>
>>
>> and finally the void is gone but still appended are extra things:
>> zh_TW.EUC-TW.EUC-TW
>> zh_TW.UTF-8.UTF-8
>> zh_TW.BIG5
>> zu_ZA.UTF-8.UTF-8
>> zu_ZA.ISO-8859-1
>>
>> So now how do I manage to remove the extra ".UTF-8" ".ISO-8859-15"
>> etc...?
>>
>
> Why not sending this to a sed command ?
>
> Romain
Hi Romain,

it's exactly what I'm trying, I've added a | sed at the end of the
command line, but I don't understand if it's possible to remove all the
duplicate .UTF-8, .ISO-<code> etc... with only one command.



More information about the lfs-support mailing list