Linux Magazine: What’s GNU in Old Utilities, Part Two

Written By
JP
Jerry Peek
Nov 17, 2005

“Years ago, there was a saying that Unix beginners use grep
because it’s all they know about, intermediate users use fgrep
because it’s supposed to be faster, and advanced users use egrep
because they’ve tested it. Each of those three variations used to
be its own separate program that did different searches. But no
more. The single GNU grep binary has a –F switch to do
fixed-string searches like fgrep and a –E switch to do
extended regular expression-powered egrep searches. GNU egrep is
simply a shell script now, like this:

#!/bin/sh
exec grep –E ${1+”$@”} …”

Complete
Story

JP

Jerry Peek

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.