gnuplot - convert a string variable to lowercase
问题 How do you convert a string to lowercase in gnuplot? This is a gnuplot string handling question. Example:- I wish to check a user typed parameter in a gnuplot script.... if (tolower(ARG2) == "ohms") {..... so by accepting "ohms", "Ohms", or "OHMS". The preference is to not need to use an external "system" command so that the script is more portable. My current best solution is arg2 = system("awk 'BEGIN { print toupper(\"".ARG2."\") }'") and then test the new string variable "arg2", but awk