in reply to Re: Re: (How) can I use regex patterns to find matching lines in a textfile?
in thread (How) can I use regex patterns to find matching lines in a textfile?


Windows requires double quotes. This should work:     perl -ne "print if /pattern/ and $i++ < 100" file.txt

--
John.

  • Comment on Re: Re: Re: (How) can I use regex patterns to find matching lines in a textfile?
  • Download Code