Hi, This is my first post, hence I shall start with a small introduction: I am Amarendra Godbole, working with the Cross Product Globalization group in Symantec Corp. (formerly VERITAS India).
Okay, now onto the issue: I have a peculiar scenario, where a grep is being done on the o/p of a db2 command in a shell script. Now, depending on the locale, the o/p of the db2 command is in a particular language - which is creating a problem, as grep fails if the o/p is not in English (as of now it is only done on English string). This grep is done to selectively display the output. So my question is: how to deal with such scenarios? An immediate solution that strikes me is to use the if loop, something like this: (pseudocode) if LANG = jp; then grep '<<japanese string>>' else grep '<<english string>>' endif But this means, the shell script shall have to accomodate *all* possible outputs in different languages - which is an unending thing - as my if statement shall continue expanding! Is there a better way? Put in a different tone, is there a framework which can be extended as a new language needs to be supported?? (assuming db2 has support for this language too.) Thanks in advance! Cheers, Amarendra -- Cross Product Globalization / Symantec Corp. / Pune, INDIA. #include <std$disclaimer.h> -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
