 pflogBueller? Bueller?Premium,MVM join:2001-09-01 El Dorado Hills, CA kudos:3 | reply to Maxo
Re: Make variables uppercase in bash.Probably the easiest thing to do would be to set a variable for the letter first, then just use that variable.
e.g instead of:
bash code:echo " column3 CONSTANT '" ${LINE:4:1} | tr 'a-z' 'A-Z' "'," >> file_loader.ctl
try:
bash code:the_char=`echo ${LINE:4:1} | tr a-z A-Z` echo " column3 CONSTANT '$the_char'," >> file_loader.tcl
Again, assuming you just want the O there and not the full name. If you want the full name, it'd be slightly more involved but not terribly so.
-- He who is not contented with what he has, would not be contented with what he would like to have. -Socrates |
 MaxoYour tax dollars at work.Premium,VIP join:2002-11-04 Tallahassee, FL | the_char=`echo ${LINE:4:1} | tr a-z A-Z` The above line just returns the given string literal, not the results of the echo. |