From 4be8482daed5524db80bd46019b5a4dcc74303ee Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 27 May 2024 19:14:00 +0300 Subject: Refactored ak-zchain-* reducing scripts number --- bin/ak-zchain-extract-cids | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 bin/ak-zchain-extract-cids (limited to 'bin/ak-zchain-extract-cids') diff --git a/bin/ak-zchain-extract-cids b/bin/ak-zchain-extract-cids deleted file mode 100755 index 61e0da5..0000000 --- a/bin/ak-zchain-extract-cids +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -## -## Extracts unique IPFS CIDs from an ak-entered zchain -## -## -h, --help Prints this help message -## -# -# Previously: -# ak-enter | jq | grep Qm | sed -e 's/^.*Qm/Qm/g' | cut -d '"' -f 1 -# -if [ ! -z $1 ] && [ -n "$1" ] -then - ak-enter $1 | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq -else - ak-enter | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq -fi -- cgit v1.2.3