From 06c1e6bf576bd36f8fde0b5be6200c79a387cfa8 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 27 Oct 2022 14:14:40 +0300 Subject: Better implementation that doesn't produce splitted CIDs --- bin/extract-cids | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/extract-cids b/bin/extract-cids index ec91fb0..06b7ebc 100755 --- a/bin/extract-cids +++ b/bin/extract-cids @@ -1,2 +1,8 @@ #!/bin/bash -enter | jq | grep Qm | sed -e 's/^.*Qm/Qm/g' | cut -d '"' -f 1 +# +# Extracts unique IPFS CIDs from an entered zchain +# +# Previously: +# enter | jq | grep Qm | sed -e 's/^.*Qm/Qm/g' | cut -d '"' -f 1 +# +enter | jq | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq -- cgit v1.2.3