Bell 32V development
[unix-history] / usr / lib / learn / files / L5.1a
CommitLineData
fed84c9b
TL
1#print
2Most UNIX commands, like "ls" and "cat", let you
3specify any number of file names after the command.
4To make this as easy as possible, there are some
5ways to abbreviate file names. This is usually
6faster and more accurate than typing out the list in full.
7
8For example, when the character "?" is used in a file name,
9it will represent any character that might be
10in a file name. That is, the name "a?" is
11an abbreviation for the files "a1", "a2", "aa",
12and so forth. You can say
13 ls a?
14and if there are any file names beginning with
15"a" that are exactly two letters long, the computer
16will tell you their names. Try that here.
17First list all the file names with "ls"; then type
18 ls a?
19to get all the two letter names beginning with "a".
20Then type "ready".
21#create a1
22#create a12
23#create abcdef
24#create ax
25#create aa
26#copyin
27#user
28#uncopyin
29grep '^ls a?$' .copy >/dev/null
30#log
31#next
325.1b 0
335.1c 5
345.1e 10