I've a bash script that's supposed to go over all the filenames and print them only those that contain a certain letter (let's say it's 'o').What I've done:command=`ls -l`for file in $commanddo  if $file | grep 'o' ;  then  echo $file  fidoneThis doesn't work, it says 'command not found' on the line:if $file | grep 'o' ;I looked up several other answers here and they're doing the same thing I am, i.e. no parentheses for the if-statement, same syntax etc.What am I overlooking?
grep command not working in conditional statement
bash;shell;files;io redirection