O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Filename Generation

An important feature of most shells is the ability to refer to files by giving a pattern that describes one or more filenames. For example, all the shells discussed in this book use *.c as a pattern describing all filenames that end in .c. The shells expand this pattern into a list of filenames that match the pattern. This process of matching filenames to a pattern is called globbing. Globbing is useful for specifying many files with a single pattern and long filenames with a short string.

Setting the noglob (set –o noglob) option turns off all pattern matching so that you will have to give filenames exactly: *.c will refer only to a file whose name consists of the three-character sequence *, ., and c . See “Filename Generation/Pathname ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required