[CentOS] How to test for '.' in a script
Owen Beckley
OwenB at foxriver.comThu Jul 28 18:35:47 UTC 2011
- Previous message: [CentOS] How to test for '.' in a script
- Next message: [CentOS] How to test for '.' in a script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> $ 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
- Previous message: [CentOS] How to test for '.' in a script
- Next message: [CentOS] How to test for '.' in a script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list