Unix- Using Grep to get unmatched lines -


i new unix. want grep unmatched pattern file1 provided patterns in file2. real files having more 1000 lines.

example:

file1: hi(everyone) how(u)people(are)doing? thanksinadvance  file2: hi(every thanksi 

required result:

how(u)people(are)doing? 

i want pattern used ("hi(every") grep.it should return unmatched line file1.

this line works given example:

grep -fvf file2 file1 

the 3 options used above:

-f  makes grep fixed-string match -v  invert matching -f  patterns file 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -