[GRASS-user] !~: event not found

Hamish hamish_nospam at yahoo.com
Thu Feb 15 05:55:59 EST 2007


temiz wrote:
> this command gives error
> 
> d.vect map=jeo2 fcolor=green where="label~'CAMURTASI' and label !~ 'KUMTASI'" type=area
> bash: !~: event not found
> 
> But it works in psql side
> 
> what is the alternative of "!~" in grass ?


"" quoting does not stop bash from expanding $VAR and ! events.
Usually you would use '!' for that, but in this case ....

try
  where="label~'CAMURTASI' and label "'!'"~ 'KUMTASI'"

? but there's probably a better way..


Hamish




More information about the grass-user mailing list