summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2019-05-18 16:15:01 -0600
committermokha <mokha@cisco.com>2019-05-18 16:15:01 -0600
commit6e47f09ec68d1600ba26527f0c17175c207dfa69 (patch)
treebaa14f7a1980c463d609fc8911939021ef4912fb
parent382b28eb015fedfeb316510367119ea1c126e70a (diff)
complete chapter 7.17 exercise
-rw-r--r--README.md10
-rw-r--r--exercises/chapter-7.1712
2 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2791324..01db593 100644
--- a/README.md
+++ b/README.md
@@ -103,8 +103,18 @@ cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
```
+
17. Give a command line to display the types of all the files in your ∼/unix directory that start with the word chapter, are followed by a digit 1, 2, 6, 8, or 9, and end with .eps or .prn.
+```bash
+cd ~/unix && ls . | grep -e 'chapter[12689]\.[eps|prn]' | xargs file
+chapter1.eps: empty
+chapter1.prn: empty
+chapter2.eps: empty
+chapter6.eps: empty
+chapter8.eps: empty
+chapter9.eps: empty
+```
2. Solve problems 7–17 at the end of Chapter 8.
diff --git a/exercises/chapter-7.17 b/exercises/chapter-7.17
new file mode 100644
index 0000000..6a163c2
--- /dev/null
+++ b/exercises/chapter-7.17
@@ -0,0 +1,12 @@
+Script started on Sat May 18 16:13:34 2019
+bash-3.2$ cd ~/unix && ls . | grep -e 'chapter[12689]\.[eps|prn]' | xargs file
+chapter1.eps: empty
+chapter1.prn: empty
+chapter2.eps: empty
+chapter6.eps: empty
+chapter8.eps: empty
+chapter9.eps: empty
+bash-3.2$ exit
+exit
+
+Script done on Sat May 18 16:13:40 2019