Search Results

Search: Posts Made By: sanjuro
3,900
Posted By sanjuro
file1: a b c d e file2: aaaaa ...
file1:
a
b
c
d
e

file2:
aaaaa
bbbbb
ccccc
ddddd

Output desired:
e

Output of grep -vf file2 file1:
a
b
c
3,900
Posted By sanjuro
grep -f, how to output failed queries
Hi folks,

I've been using grep -f file1 file2 to get lines that match a file1 line from file2. I'm now interested in getting the lines from file1 where there was no match in file2.

I...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy