lolaferrari
asked on
filter a list of processes without using grep -v
I have a list of processes running on my server pasted out into a file and I want to filter out maybe 60 processes that i have in another list. Is there a better way of doing this than using grep -v ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi lolaferrari,
serialband has given you 3 options. What is wrong with the 3rd one of them? You can put your 40 or 50 (or as many as you like) items in the exclude_list.txt file (or whatever filename you what to use).
serialband has given you 3 options. What is wrong with the 3rd one of them? You can put your 40 or 50 (or as many as you like) items in the exclude_list.txt file (or whatever filename you what to use).
ASKER
Fantastic help! thank you
Ok, strange. I though I responded to you @tel2. In fact, I remember doing it twice, but I still don't see my response.
It's as you say. I gave examples to help with the syntax, since I wasn't sure what @lolaferrari needed.
@lolaferrari
The 3rd option is best with a file with 40 or 50 items. I can't think of anything that would improve on that. The grep command placese everything into one grep process. Anything else would spawn additional processes and slow it down more.
It's as you say. I gave examples to help with the syntax, since I wasn't sure what @lolaferrari needed.
@lolaferrari
The 3rd option is best with a file with 40 or 50 items. I can't think of anything that would improve on that. The grep command placese everything into one grep process. Anything else would spawn additional processes and slow it down more.
ASKER