[CentOS] How to test for '.' in a script

Thu Jul 28 18:35:47 UTC 2011
Owen Beckley <OwenB at foxriver.com>

> $ if [[ "$I" -eq '.' ]]; then echo true; fi
> -bash: [[: .: syntax error: operand expected (error token is ".")

-eq is for numbers

== is for strings

See "man bash".

-Owen