How to read all the data inside of text file then compared to the other file that has the same data?

How to read all the data inside of text file then compared to the other file that has the same data?

This depends on what you want to achieve. In general, regular expression can be used to extract data from both files and then we can compare what we have from both the files.

1 Like

@monsieurrahul

can you give an example for this:

#test1
asdsat
213rs
#test2
asfag4
32135
gdssys66s6
Wetrweg
#test3

NOTE: I need to get only the #test1, #test2, #test3.