aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-get-only-ipfs-key-values-from-our-or-a-zchain
blob: 2b9f580f12ea7f113a33996a422cb9567f95fe58 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
# Outputs all the "ipfs" values from the DATA blocks of our ZCHAIN
if [ ! -z $1 ]
then
    enter $1 | jq | grep ipfs | awk '{print $2}' | sed -e 's/"//g;s/,//g'
else
    enter | jq | grep ipfs | awk '{print $2}' | sed -e 's/"//g;s/,//g'
fi