- I have a file
file1
which contains various strings. These strings have to be used with regular expression. I have a another file which will be updated in realtime.
tail -f <filename>
will provide the continuous output.My requirement is to skip the strings present in
file1
and show the rest of output infile2
.
For example: file1
has the content below
Result of operation: got a 2 bytes
49.53.4F.30.31.36.30.30.30.30.31.35.30.32.31.30
Processing Event
Note: to match line 2 in file1
, I have to use a regular expression.
File2 has content that will be file1 + X. So, in my output only X (the extra lines) should be displayed.