LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to exclude a string (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-exclude-a-string-901804/)

ust 09-08-2011 04:07 AM

how to exclude a string
 
I have a large file , I want to read the content but want to exclude the lines that have "test" or "system" , that means I want to read the file content , but all the lines do not have the "test" or "system" , can advise what can i do ?


thanks.

jv2112 09-08-2011 04:20 AM

grep -v pattern --> gives you all but the pattern.


All times are GMT -5. The time now is 06:30 AM.