Write a Unix command to display the lines in a file that do not contain the word “RAM”?

grep -v RAM filename
The ‘-v’ option tells the grep to print the lines that do not contain the specified pattern.

Category: UNIX Interview Questions.