grep helped 3 times one week.
Overwrote precious text file. Got it back in minutes with:
sudo grep -i -a -B100 -A100 'some text in file' /dev/mapper/vg-root > files.txt
Found lines in common between two files:
grep -Fxf file1 file2
Prefix lines with file name:
grep . . file