Transifex and LINGUAS files
David Mohr
squisher at xfce.org
Tue Aug 18 19:33:59 CEST 2009
On Tue, Aug 18, 2009 at 11:30 AM, Stefan Stuhr<xfce4devlist at sstuhr.dk> wrote:
> tir, 18 08 2009 kl. 12:34 +0200, skrev Nick Schermer:
>> I'd love one-liner topics, my turn. I think this will work, but not
>> sure since i'm at work:
>>
>> LINGUAS=$(ls po/*.po | sed 's:po/\(.*\)\.po$:\1:')
>
> It works; does the job of basename on each line just fine.
>
> This works as well:
> LINGUAS="$(ls po/*.po 2>/dev/null | xargs -I {} basename {} .po)"
>
> Or, if one wants a more compact one line result:
> LINGUAS="$(echo $(ls po/*.po 2>/dev/null | xargs -I {} basename {} .po))"
>
> There sure is a lot of colors available when one wants to paint a bike
> shed ;-)
I like colors! ;-)
LINGUAS=`(cd po; ls *.po | cut -d. -f1)`
~David
More information about the Xfce4-dev
mailing list