LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find text that does not match (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-text-that-does-not-match-4175548786/)

linux_nerd 07-23-2015 09:59 PM

How to find text that does not match
 
I need a way to find out if a string is different in a commands out put.
So say i run something like lspci grep for gigabit, I need to know if there is a card that does not contain gigabit. How would one accomplish this?

Garyluvslinux 07-23-2015 10:03 PM

Code:

lspci | grep -v string

Garyluvslinux 07-23-2015 10:13 PM

If you want to match all cases of gigabit, add the -i option, ignore case.

For example gigabit GigaBit GIGABIT, etc...


All times are GMT -5. The time now is 05:00 AM.