Commit | Line | Data |
---|---|---|
3eb5d546 C |
1 | |
2 | The "cat" command prints the contents of one or more files. | |
3 | In fact, it is named "cat" as an abbreviation | |
4 | for "concatenate". To print the files named "dog" | |
5 | and "mouse" in succession, you could type either | |
6 | cat dog | |
7 | cat mouse | |
8 | or just | |
9 | cat dog mouse | |
10 | If you print them with one command, | |
11 | the contents are printed in sequence with nothing | |
12 | between them. | |
13 | ||
14 | How many lines are there in all the files | |
15 | whose names begin with "b"? Find out, then type | |
16 | "answer N" where N is the total number of lines. | |
17 | #create ben | |
18 | the file ben has | |
19 | a total of three | |
20 | short lines. | |
21 | #create bernie | |
22 | this file has | |
23 | two lines. | |
24 | #create bruce | |
25 | only one line here. | |
26 | #copyin | |
27 | #user | |
28 | #uncopyin | |
29 | #match 6 | |
30 | #log | |
31 | #next | |
32 | 4.1a 10 | |
33 | 4.2a 5 | |
34 | 4.3a 2 |