I started learning Bash a couple of days ago.
I'm trying to obtain an exit status of grep expression into a variable like this:
check=grep -ci 'text' file.sh and the output that I got is
No command '-ic' found Should I do it with a pipe command?