diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/extract-cids | 8 |
1 files changed, 7 insertions, 1 deletions
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 |