{{{}}}**Use tolower()** * portable * must be explicitly used for each comparison Instead of: {{{ awk if (avar=="a" || avar=="A") { ... } }}} Use: {{{ awk if (tolower(avar)=="a") { ... } }}} Or at the beginning of your code, add a line like: {{{ awk { for (i=0;i<=NF;i++) $i=tolower($i) } { $0=tolower($0); } # modern awks will rebuild $1..$NF also }}} {{{}}} **Use IGNORECASE=1;** * gawk only * used for all comparisons, regex comparisons, index() function * not used for array indexing
Summary:
This change is a minor edit.
Username: