Cover | Table of Contents
Constant Width
$
[ ]
Constant Width
$
[ ]
$ grep [A-Z]* chap[12]
$ grep Array.c Bug.c Comp.c chap1 chap2
Array.c in files
Bug.c, Comp.c, chap1, and chap2.
To bypass the shell and pass the special characters
to grep, use quotes:$ grep "[A-Z]*" chap[12]
? matches zero or one instance of
a regular expression; in filename expansion, ? matches a single
character.| Character | Pattern |
|---|
ftp://gnudist.gnu.org/gnu/sed/sed-3.02.tar.gz.
The somewhat older version, 2.05, is also available.$ awk 1 /dev/null awk: syntax error near line 1 awk: bailing out near line 1
http://cm.bell-labs.com/~bwk.
Michael Brennan's mawk is available via
anonymous FTP from
ftp://ftp.whidbey.net/pub/brennan/mawk1.3.3.tar.gz.
Finally,
the Free Software Foundation has a version of awk called
gawk, available from
ftp://gnudist.gnu.org/gnu/gawk/gawk-3.0.4.tar.gz