Home.md
... ...
@@ -14,6 +14,7 @@ grimoire
14 14
15 15
### programming
16 16
* [shell_scripts](/programming/shell_scripts)
17
+* [nubbins](programming/nubbins)
17 18
* [more...](/tech-index#programming)
18 19
19 20
### other
programming/nubbins.md
... ...
@@ -0,0 +1,8 @@
1
+# nubbins
2
+
3
+* compare contents of two directories
4
+```
5
+for f in $(find dir1/ -type f | awk -F/ '{print $NF}') ; do
6
+ find dir2/ -type f -name "$f" -exec echo {} is in both \;
7
+done
8
+```