aboutsummaryrefslogtreecommitdiff
path: root/bin/extract-cids
blob: 06b7ebc98901ba0a9f8b2dcf270e0c38dd46982e (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
#
# 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