Searching for a Pattern from bottom of file in Linux
So basically I have a large zip file and I am using “zgrep ‘Hello = ‘ file_name.gz | tail -2”. Now I want to optimize this by starting to search from the bottom and taking the first 2 options. I dont want to store this file in an array because its a large file. Is there any alternative to this like a script or a command? It would be really helpful.