grep command in a script takes more time than pcregrep to complete.

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content