Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Has anyone seen the changes with grep 2.20-3 with RHEL 6.7

    Posted on

    My developer came to me this morning asking if there were patches applied. Naturally there were. We applied updates to go from RHEL 6.6 to RHEL 6.7. One package update was "grep". We moved up from "grep" version 2.6.3-6 to version 2.20-3.

    The developer had a script which would, by default, seem to ignore directories in the "grep" results. With the newly applied update "grep" would find subdirectories and spit out "Is a directory" message for every directory found. Though both grep versions' man page indicate this should have happened it did not for the older version.

    It's difficult to find anyone talking about this since the word "grep" is all over the place on the Internet. I also saw nothing at the GNU "grep" web site specifically noting this change.

    So, it was a very simple fix, simply use the argument "-d skip" to skip or ignore the "Is a directory" outputs. Problem solved.

    I found this interesting and was curious if anyone had run into this before. I think "grep" is like electricity in America, we take it for granted, until something goes wrong.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat