aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zchain-extract-data-cids
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-zchain-extract-data-cids')
-rwxr-xr-xbin/ak-zchain-extract-data-cids8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ak-zchain-extract-data-cids b/bin/ak-zchain-extract-data-cids
new file mode 100755
index 0000000..303d595
--- /dev/null
+++ b/bin/ak-zchain-extract-data-cids
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Outputs all the "ipfs" values from the DATA blocks of our ZCHAIN
+if [ ! -z $1 ]
+then
+ ak-enter $1 | jq | grep ipfs | awk '{print $2}' | sed -e 's/"//g;s/,//g'
+else
+ ak-enter | jq | grep ipfs | awk '{print $2}' | sed -e 's/"//g;s/,//g'
+fi