blob: 5b463a9c0167bf00fe0a2f9370c488b4dc527430 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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] [...]
$
```
|