28 Jul
2009
28 Jul
'09
16:23
David C. Rankin wrote:
Bash gurus,
What is a shorter way to do multiple case insensitive tests on a string or variable that would accomplish this:
[[ $line == QUIT ]] || [[ $line == Quit ]] || [[ $line == quit ]] && [[ break
You could translate $line to upper or lower case first (using tr), then do your tests. /Per -- Per Jessen, Zürich (24.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org