Andre Poenitz wrote: > On Mon, Jul 01, 2002 at 12:22:36PM +0200, Jean-Marc Lasgouttes wrote: > >>Andre> Then perhaps >>Andre> tr [A-Z._] [a-zzz] < POTFILES.in | paste - POTFILES.in | sort | >>Andre> cut -f 2 >> >>Isn't this completely unportable? What an ugly solution... >> > > What's unportable there? I always thought that the text utils were > available in every *nix?
I had to admit, that I'm surprised of the existance of paste. I've learned a new unix command today! But I don't understand the problem of portability of sort. Maybe, it's a environment thing? What about % LC_COLLATE=C sort POTFILES.in Possibly an additional parameter -f for sort is also usable. This should be portable. Stephan ------------------------------------------------ <[EMAIL PROTECTED]> | beusen Solutions GmbH fon: +49 30 549932-426 | Landsberger Allee 366 fax: +49 30 549932-921 | 12681 Berlin, Germany ------------------------------------------------