grep contents of one list with another
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have 2 files and I want to grep on them
List1
ACY1
RPL3
RPL4
List2
1 ABHD14A-ACY1
2 ACY1
3 RPL34
4 RPL21
5 RPL3
6 RPL41
I tried something like this
grep -Fwf list1.txt list2.txt
and got this
1 ABHD14A-ACY1
2 ACY1
5 RPL3
My list1 did not have ABHD14A-ACY1. Is there a way in grep I can do this?
Thanks
grep
add a comment |Â
up vote
0
down vote
favorite
I have 2 files and I want to grep on them
List1
ACY1
RPL3
RPL4
List2
1 ABHD14A-ACY1
2 ACY1
3 RPL34
4 RPL21
5 RPL3
6 RPL41
I tried something like this
grep -Fwf list1.txt list2.txt
and got this
1 ABHD14A-ACY1
2 ACY1
5 RPL3
My list1 did not have ABHD14A-ACY1. Is there a way in grep I can do this?
Thanks
grep
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have 2 files and I want to grep on them
List1
ACY1
RPL3
RPL4
List2
1 ABHD14A-ACY1
2 ACY1
3 RPL34
4 RPL21
5 RPL3
6 RPL41
I tried something like this
grep -Fwf list1.txt list2.txt
and got this
1 ABHD14A-ACY1
2 ACY1
5 RPL3
My list1 did not have ABHD14A-ACY1. Is there a way in grep I can do this?
Thanks
grep
I have 2 files and I want to grep on them
List1
ACY1
RPL3
RPL4
List2
1 ABHD14A-ACY1
2 ACY1
3 RPL34
4 RPL21
5 RPL3
6 RPL41
I tried something like this
grep -Fwf list1.txt list2.txt
and got this
1 ABHD14A-ACY1
2 ACY1
5 RPL3
My list1 did not have ABHD14A-ACY1. Is there a way in grep I can do this?
Thanks
grep
grep
asked 3 mins ago
user3138373
85541430
85541430
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479001%2fgrep-contents-of-one-list-with-another%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password