aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-extract-cids
blob: 3076ace841f8f19dd4f83f1b3546a828add43587 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
#
# Extracts unique IPFS CIDs from an ak-entered zchain
#
# Previously:
# ak-enter | jq | grep Qm | sed -e 's/^.*Qm/Qm/g' | cut -d '"' -f 1
#
ak-enter | jq | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq