Note: Cross Post from comp.unix.misc.
Hello, I have a sorted list that contains dates:
I need a one liner that matches the line after the last occurance of
the pattern to the end of the file. So in the example if the regex was
1\/10\/2005, it would match after the 3rd occurence of 1/10/2005; the
output would contain 3 lines starting at 1/15/2005.
I have tried: sed '1,'1\/10\/2005'/d, but that prints the 2nd occurance
to the end of the file. I have also looked around the newsgroups and
have seen similar functionality in AWK, GREP and PERL, but I have not
stumbled into the solution.
I would appreciate it if you could point me in the right direction.