aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/extract-cids8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/extract-cids b/bin/extract-cids
index ec91fb0..06b7ebc 100755
--- a/bin/extract-cids
+++ b/bin/extract-cids
@@ -1,2 +1,8 @@
#!/bin/bash
-enter | jq | grep Qm | sed -e 's/^.*Qm/Qm/g' | cut -d '"' -f 1
+#
+# Extracts unique IPFS CIDs from an entered zchain
+#
+# Previously:
+# enter | jq | grep Qm | sed -e 's/^.*Qm/Qm/g' | cut -d '"' -f 1
+#
+enter | jq | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq