summaryrefslogtreecommitdiff
path: root/os1w5/practicum.md
diff options
context:
space:
mode:
Diffstat (limited to 'os1w5/practicum.md')
-rw-r--r--os1w5/practicum.md49
1 files changed, 49 insertions, 0 deletions
diff --git a/os1w5/practicum.md b/os1w5/practicum.md
new file mode 100644
index 0000000..5b463a9
--- /dev/null
+++ b/os1w5/practicum.md
@@ -0,0 +1,49 @@
+# practicum week 5
+
+## 1
+
+```bash
+find ~
+```
+
+## 2
+
+```bash
+find ~ -type f
+```
+
+## 3
+
+```bash
+find . -type f -mtime 1
+```
+
+## 4
+
+```bash
+find . -type f -exec wc -l {} \; | awk '$1 > 5 { print $2 }'
+```
+
+## 5
+
+```bash
+$ ./textfrutter.sh -l -p "volgende argument is: " -v Bob Koen Bart
+volgende argument is: bb
+volgende argument is: kn
+volgende argument is: brt
+```
+
+## 6
+
+```bash
+$ ./lettercount.sh practicum.md a e u i o
+a -> 12
+e -> 23
+u -> 6
+i -> 11
+o -> 6
+$ ./lettercount.sh practicum.md
+not enough arguments
+usage: ./lettercount.sh <file> <letter1> [letter2] [letter3] [...]
+$
+```