Linux grep what in file 1 is in file 2 [duplicate]
Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
This question already has an answer here:
Output the common lines (similarities) of two text files (the opposite of diff)?
5 answers
File 1:
1234567890123456,00,00,000
1111111111111111,11,11,1111
File 2
1111111111111111,11,11,1111
9999999999999999,99,99,999
So i want to know what in file 1 is in file 2 which is
Output:
1111111111111111,11,11,1111
awk sed grep regular-expression diff
marked as duplicate by Sundeep, John, John1024, Jeff Schaller, ñÃÂsýù÷ Nov 27 '17 at 16:10
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
-2
down vote
favorite
This question already has an answer here:
Output the common lines (similarities) of two text files (the opposite of diff)?
5 answers
File 1:
1234567890123456,00,00,000
1111111111111111,11,11,1111
File 2
1111111111111111,11,11,1111
9999999999999999,99,99,999
So i want to know what in file 1 is in file 2 which is
Output:
1111111111111111,11,11,1111
awk sed grep regular-expression diff
marked as duplicate by Sundeep, John, John1024, Jeff Schaller, ñÃÂsýù÷ Nov 27 '17 at 16:10
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
How have you tried to solve this problem so far, and what have the results been?
â John
Nov 27 '17 at 15:46
@John I don't know how to resolve it so that's why am asking if someone know
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 15:48
2
We're willing to help. We're not willing to do everything for you. You need to make an effort to figure this out on your own first. I would start by reading @Sundeep's link.
â John
Nov 27 '17 at 15:51
@John, i already make effort before asking the question. but failed, that's why i asked my question and by the link which Sundeep provided i were able to resolve my issue ! so thank you
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
@Sundeep thank you so much man
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
add a comment |Â
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
This question already has an answer here:
Output the common lines (similarities) of two text files (the opposite of diff)?
5 answers
File 1:
1234567890123456,00,00,000
1111111111111111,11,11,1111
File 2
1111111111111111,11,11,1111
9999999999999999,99,99,999
So i want to know what in file 1 is in file 2 which is
Output:
1111111111111111,11,11,1111
awk sed grep regular-expression diff
This question already has an answer here:
Output the common lines (similarities) of two text files (the opposite of diff)?
5 answers
File 1:
1234567890123456,00,00,000
1111111111111111,11,11,1111
File 2
1111111111111111,11,11,1111
9999999999999999,99,99,999
So i want to know what in file 1 is in file 2 which is
Output:
1111111111111111,11,11,1111
This question already has an answer here:
Output the common lines (similarities) of two text files (the opposite of diff)?
5 answers
awk sed grep regular-expression diff
asked Nov 27 '17 at 15:43
ñÃÂñýàñüÃÂÃÂùcñ÷
412418
412418
marked as duplicate by Sundeep, John, John1024, Jeff Schaller, ñÃÂsýù÷ Nov 27 '17 at 16:10
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Sundeep, John, John1024, Jeff Schaller, ñÃÂsýù÷ Nov 27 '17 at 16:10
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
How have you tried to solve this problem so far, and what have the results been?
â John
Nov 27 '17 at 15:46
@John I don't know how to resolve it so that's why am asking if someone know
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 15:48
2
We're willing to help. We're not willing to do everything for you. You need to make an effort to figure this out on your own first. I would start by reading @Sundeep's link.
â John
Nov 27 '17 at 15:51
@John, i already make effort before asking the question. but failed, that's why i asked my question and by the link which Sundeep provided i were able to resolve my issue ! so thank you
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
@Sundeep thank you so much man
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
add a comment |Â
1
How have you tried to solve this problem so far, and what have the results been?
â John
Nov 27 '17 at 15:46
@John I don't know how to resolve it so that's why am asking if someone know
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 15:48
2
We're willing to help. We're not willing to do everything for you. You need to make an effort to figure this out on your own first. I would start by reading @Sundeep's link.
â John
Nov 27 '17 at 15:51
@John, i already make effort before asking the question. but failed, that's why i asked my question and by the link which Sundeep provided i were able to resolve my issue ! so thank you
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
@Sundeep thank you so much man
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
1
1
How have you tried to solve this problem so far, and what have the results been?
â John
Nov 27 '17 at 15:46
How have you tried to solve this problem so far, and what have the results been?
â John
Nov 27 '17 at 15:46
@John I don't know how to resolve it so that's why am asking if someone know
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 15:48
@John I don't know how to resolve it so that's why am asking if someone know
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 15:48
2
2
We're willing to help. We're not willing to do everything for you. You need to make an effort to figure this out on your own first. I would start by reading @Sundeep's link.
â John
Nov 27 '17 at 15:51
We're willing to help. We're not willing to do everything for you. You need to make an effort to figure this out on your own first. I would start by reading @Sundeep's link.
â John
Nov 27 '17 at 15:51
@John, i already make effort before asking the question. but failed, that's why i asked my question and by the link which Sundeep provided i were able to resolve my issue ! so thank you
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
@John, i already make effort before asking the question. but failed, that's why i asked my question and by the link which Sundeep provided i were able to resolve my issue ! so thank you
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
@Sundeep thank you so much man
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
@Sundeep thank you so much man
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Using the following command i were able to resolve my issue
grep -Fxf file1 file2
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Using the following command i were able to resolve my issue
grep -Fxf file1 file2
add a comment |Â
up vote
0
down vote
accepted
Using the following command i were able to resolve my issue
grep -Fxf file1 file2
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Using the following command i were able to resolve my issue
grep -Fxf file1 file2
Using the following command i were able to resolve my issue
grep -Fxf file1 file2
answered Nov 27 '17 at 15:59
ñÃÂñýàñüÃÂÃÂùcñ÷
412418
412418
add a comment |Â
add a comment |Â
1
How have you tried to solve this problem so far, and what have the results been?
â John
Nov 27 '17 at 15:46
@John I don't know how to resolve it so that's why am asking if someone know
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 15:48
2
We're willing to help. We're not willing to do everything for you. You need to make an effort to figure this out on your own first. I would start by reading @Sundeep's link.
â John
Nov 27 '17 at 15:51
@John, i already make effort before asking the question. but failed, that's why i asked my question and by the link which Sundeep provided i were able to resolve my issue ! so thank you
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02
@Sundeep thank you so much man
â Ã±ÃÂñýàñüÃÂÃÂùcñ÷
Nov 27 '17 at 16:02