grep command in a script takes more time than pcregrep to complete.
Issue
- When grep is used to parse file with lines more than 1k characters long it takes almost 18 minutes to finish, while with pcregrep script finishes fairly quickly.
Environment
- Red Hat Enterprise Linux (RHEL) 5, 6
- grep-2.5.1-55.el5
- pcre-6.6-6.el5_6.1.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.