I'd like to know how to find a specific string sequence in files.
For instance, suppose that the file1 holds a sequence like the following
I would like to know the line number and count all the sequence like:
the sequence must be matched exactly in file1. Wrt to file 1, the sequence
I've tried with
grep -nFf sequence_to_find file1
but it's not what I'm looking for.
in "sequence_to_find" there are the former sequences.
I'd like to have an output like:
Is there any way to do that?
Thank you in advance