How can you search for all lines containing 55=MSFT and not containing the string OPEN in a file, then redirect the output to a file named MSFTFILE?
search for multiple condition and then redirect output
io redirection;file search
grep for the first string, then pipe the output to grep -v which matches all lines without OPEN, then direct the output to MSFTFILE.Edit:Use -h option of grep to suppress filenames in grep output if required.grep -h -- '55=MSFT' * | grep -v OPEN > MSFTFILE(however note that the second grep may match on the filenames)