Credits Overview Plotting Styles Commands Terminals

trim

trim(" padded string ") returns the original string stripped of leading and trailing whitespace. This is useful for string comparisons of input data fields that may contain extra whitespace. For example

     plot FOO using 1:( trim(strcol(3)) eq "A" ? $2 : NaN )