words("string") は、文字列 (string) の単語数を返します。例えば、 words(" a b c d") は 4 を返します。
関数 word と words は、単一引用符、二重引用符で囲まれた文字列も、
限定的ですがサポートしています:
     print words("\"double quotes\" or 'single quotes'")   # 3
     print words("Alexis' phone doesn't work") # 4
     s = "Keep \"'single quotes'\" or '\"double quotes\"'"
     print word(s, 2) # 'single quotes'
     print word(s, 4) # "double quotes"
trim("  padded string ") は、元の文字列の前後にある空白部分を取り除
いた文字列を返します。これは、余計な空白を持ちうる入力データ列の文字列
同士を比較する際に有用です。例:
    plot FOO using 1:( trim(strcol(3)) eq "A" ? $2 : NaN )
竹野茂治@新潟工科大学