in reply to Re: print a file from Bottom to Top (reverse order)
in thread print a file from Bottom to Top (reverse order)
Thank you very much for your code. it works as expected. my file is actually maillog file. It's sometimes huge. So File::ReadBackwards is much better. But, the problem is I am trying to insert below lines in to that code.
if (/Passed CLEAN/) { #search string Passed CLEAN print "$_ \n"; # print ALL lines containing Passed CLEAN }
But, still no success. I am learning perl. I am still a novice. I googled how to insert it, But, still not lucky.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: print a file from Bottom to Top (reverse order)
by Laurent_R (Canon) on Jun 20, 2018 at 18:45 UTC | |
by theravadamonk (Scribe) on Jun 22, 2018 at 15:45 UTC | |
|
Re^3: print a file from Bottom to Top (reverse order)
by AnomalousMonk (Archbishop) on Jun 20, 2018 at 19:04 UTC |