Answer the question
In order to leave comments, you need to log in
What is the command to enter for filtering in Linux?
Hello!
There are 2 files file A and file B
Contents of file A:
id1:441
id2:458
id3:456
id4:233
id1
id2
id1:441
id2:458
Answer the question
In order to leave comments, you need to log in
I'm not sure that I understood the problem correctly, but I'll make an assumption:
cat fileA | egrep "id1|id2"
id1:441
id2:458
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question