aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zchain-extract-cids
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
commite4f18be94261b39544ef3bc50321f6aedeb45bd6 (patch)
tree2c79daf0bdc91beb91846f00bb3d3f51236967cf /bin/ak-zchain-extract-cids
parent23a61661f03c03a357ad8aa47ba3595fabe24de1 (diff)
downloadarching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.gz
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.bz2
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.zip
huge refactor, might breaking things
Diffstat (limited to 'bin/ak-zchain-extract-cids')
-rwxr-xr-xbin/ak-zchain-extract-cids11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/ak-zchain-extract-cids b/bin/ak-zchain-extract-cids
index a07c481..61e0da5 100755
--- a/bin/ak-zchain-extract-cids
+++ b/bin/ak-zchain-extract-cids
@@ -1,13 +1,16 @@
#!/bin/bash
-#
-# Extracts unique IPFS CIDs from an ak-entered zchain
+##
+## 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 | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq
+ ak-enter $1 | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq
else
- ak-enter | jq | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq
+ ak-enter | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq
fi