Can I execute a grep in my script below?
echo 5 echo 4 result='çat output.txt | grep flag' echo $result The scipt gets used like ./script | ./program > output.txt
The script is used as input for the program, and the output of the program gets put into output, which I want to be able to grep for instantly. At the moment, it seems to finish without doing the grep command
çshould bec{ echo 5; echo 4; } | ./programexpect.