From 54a6cf3bba10027f2cf9d7d641b667c8d9a400ea Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 28 Feb 2024 08:32:20 +0200 Subject: Refactoring --- bin/ak-zchain-extract-data-cids | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/ak-zchain-extract-data-cids (limited to 'bin/ak-zchain-extract-data-cids') 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 -- cgit v1.2.3