bash - sed, awk, grep matching word 2 files -
hope can help.
i have 2 files. file-a looks like
bank sofa table file-b "script". example looks like:
abcdfg bank kitchen abcdfg uhuh sofa := i need know words in file-a not match words in file-b , print file-c
i know have in 1 single file, not how compare file.
i appreciate help.
in 2 step:
fgrep -f file-a -o file-b > this_words_from_file-a_are_in_file-b sort file-a this_words_from_file-a_are_in_file-b | uniq -u (the first searches words outputs found ones, sort , uniq filtering out those.)
Comments
Post a Comment