File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 14
14
|Sum|Functions|[ Exercise] ( sum.md ) |[ Solution] ( solutions/sum.md ) | Basic
15
15
|Number of Arguments|Case Statement|[ Exercise] ( num_of_args.md ) |[ Solution] ( solutions/num_of_args.md ) | Basic
16
16
|Empty Files|Misc|[ Exercise] ( empty_files.md ) |[ Solution] ( solutions/empty_files.md ) | Basic
17
- |Directories Comparison|Misc|[ Exercise] ( directories_comparison.md ) | :( | Basic
17
+ |Directories Comparison|Misc|[ Exercise] ( directories_comparison.md ) |[ Solution ] ( solutions/directories_comparison.md ) | Basic
18
18
|It's alive!|Misc|[ Exercise] ( host_status.md ) |[ Solution] ( solutions/host_status.md ) | Intermediate
19
19
20
20
## Shell Scripting - Self Assessment
Original file line number Diff line number Diff line change 4
4
5
5
1 . You are given two directories as arguments and the output should be any difference between the two directories
6
6
7
- ### Solution
7
+ ### Solution 1
8
8
9
9
Suppose the name of the bash script is ``` dirdiff.sh ```
10
10
26
26
fi
27
27
28
28
diff -q $1 $2
29
+ ```
30
+
31
+ ### Solution 2
29
32
30
- ```
33
+ With gnu find, you can use diff to compare directories recursively.
34
+
35
+ ``` shell
36
+ diff --recursive directory1 directory2
37
+ ```
You can’t perform that action at this time.
0 commit comments