Is it possible to scan a file for a pattern in reverse (bottom up) using ack (the grep alternative)?
Right now I am using:
tac filename | grep -m1 blablabla
but a friend mentioned that ack might be able to do this type of thing without the use of tac. I went through the man file and could not find anything mentioning this capability (or maybe I was just dumb and missed it).
If it is not possible to do the above, what would be a more efficient way of doing this type of search? (find the first match of a pattern starting at the bottom of a file)