Issue
Say a string might be like "a b '' c '' d"
. How can I check that there is single/double quote and space contained in the string?
Solution
case "$var" in
*\ * )
echo "match"
;;
*)
echo "no match"
;;
esac
Answered By - Steve B.