This is just a simple script which echoes to the screen whatever the user types and quits when the user types quit or QUIT.
Code:
while read LINE; do
if [[ "$LINE" =~ quit|QUIT ]]; then
break
fi
echo $LINE
done
How do I add case insensitivity to the quit word so that typing in quit, QuIt, Quit, or any other possibility matches the if statement?