I have huge files and i want to grep only the last line that grep find.
I don't want to use tail since count line is change also from file to file and I don't want grep will search the all file.
for example file contain:
Quote:
... (1000000 lines)
bla bla bla
la la la
OPS hello
--- (5000000 lines)
No yes no
kuku OPS kuku
opala OPS
... (90000 lines)
|
grep to find OPS will give the last result
"opala OPS"
I don't want grep will work the all file since it can be Giga or more.
only search from the end of the file until he catch the "OPS" word.
Thanks