in reply to Searching a pattern's first and last occurrence in a file.

What did you try?

Tip Use a regex!

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re: Searching a pattern's first and last occurrence in a file.