summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2017-04-24 10:49:29 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2017-04-24 10:49:29 +0100
commit79419dcd54b3542a0262f178840414fda01e2f17 (patch)
tree0026423519a2f7c79fbf90903e80bfa350f1e431
parent12e8e46a138bd8e3b99a5ac7b1a7922f06500743 (diff)
Add handy-snippets.sh
Various handy incantations not (yet) developed into full scripts. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--handy-snippets.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/handy-snippets.sh b/handy-snippets.sh
new file mode 100644
index 0000000..834ca74
--- /dev/null
+++ b/handy-snippets.sh
@@ -0,0 +1,8 @@
+#
+# First step in looking for duplicate file GUIDs
+#
+# find . -name "*.inf" | \
+# xargs grep -H FILE_GUID | \
+# sed 's/^\(.*\):[ \t]*FILE_GUID[ \t]*=[ \t]*\([a-f.A-F.0-9.-]*\).*\r$/\2 \1/' | \
+# sort
+#