Wild Cards - Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual

Table of Contents

Advertisement

mand appears at the prompt. Press ↓ to move forward through the list of previously
entered commands. Use Ctrl + R to search in the history.
You can edit the selected command, for example, changing the name of a file, before
you execute the command by pressing Enter . To edit the command line, just move the
cursor to the desired position using the arrow keys and start typing.
Completing a filename or directory name to its full length after typing its first letters
is another helpful feature of Bash. To do so, type the first letters then press →| . If the
filename or path can be uniquely identified, it is completed at once and the cursor moves
to the end of the filename. You can then enter the next option of the command, if nec-
essary. If the filename or path cannot be uniquely identified (because there are several
filenames starting with the same letters), the filename or path is only completed up to
the point where again several options are possible. You can then obtain a list of them
by pressing →| a second time. After this, you can enter the next letters of the file or
path then try completion again by pressing →| . When completing filenames and paths
with the help of →| , you can simultaneously check whether the file or path you want
to enter really exists (and you can be sure of getting the spelling right).

Wild Cards

Another convenience offered by the shell is wild cards for pathname expansion. Wild
cards are characters that can stand for other characters. There are three different types
of these in Bash:
?
Matches exactly one arbitrary character
*
Matches any number of characters
[set]
Matches one of the characters from the group specified inside the square brackets,
which is represented here by the string set. As part of set you can also specify
character classes using the syntax [:class:], where a class is one of alnum,
alpha, ascii, etc.
Using ! or ^ at the beginning of the group ([!set]) matches one character other
than those identified by set.
Working with the Shell
359

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents