I need to compare my input with Enter/Return key...
read -n1 key if [ $key == \"\\n\" ] echo \"@@@\" fi
But this
None of these conditions worked for me and so I've came up with this one:
${key} = $'\0A'
Tested on CentOS with Bash 4.2.46.