i have a big domain lists file for a proxy filter. In another file I have some exceptions i would like to remove from filter file all rows of excpetions file. Is it possibile with some “sed” operation?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can generally use
grepwith the-vand-foptions for this. In fact, you probably want to usefgrepor the-Fflag as well to ensure the string are considered as fixed string rather than regexes. Without that, for example, the first line of theinfilefile below will be removed despite not actually matching the fixed string.-vreverses the sense that that matching lines are thrown away rather than kept, and-fwill get the patterns from a file rather than the command line.For example: