aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zchain-extract-data-cids
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-02-28 08:32:20 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-02-28 08:32:20 +0200
commit54a6cf3bba10027f2cf9d7d641b667c8d9a400ea (patch)
treeb111b2051d26615d95d0b1f0a2a9d8cec4bcfe8e /bin/ak-zchain-extract-data-cids
parent9da29bce4fdd4ca0754f9c505b746d68182f6046 (diff)
downloadarching-kaos-tools-54a6cf3bba10027f2cf9d7d641b667c8d9a400ea.tar.gz
arching-kaos-tools-54a6cf3bba10027f2cf9d7d641b667c8d9a400ea.tar.bz2
arching-kaos-tools-54a6cf3bba10027f2cf9d7d641b667c8d9a400ea.zip
Refactoring
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