Answer the question
In order to leave comments, you need to log in
How to output only lines from file 2 that are not in file 1?
There are 2 txt files
1.txt
1
2
3
4
5
1
3
12
44
55
Answer the question
In order to leave comments, you need to log in
cat 2.txt | while read line ; do if ! grep -q $line 1.txt; then echo $line; fi ; done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question