if statement for non alphanumeric character
Im trying to have a if statement perform a check to throw out a string that contains alphanumeric
so anything like ^*&(*"
ive been racking my brain with if statements and checks like
if [ $string = "\^|\*" ]
echo "string contains incorrect characters"
however i cant figure it :\