You're on the rich track. For Linux/UNIX, the default DbVisualizer variable prefix and suffix interferes with the shell variables syntax. I suggest you change the DbVisualizer variable prefix and suffix in Tool Properties, in the Variables category, to e.g. "#{" and "}#". You can then write command like this: