aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-json2bash
blob: 171a7df4e3262f5c292a946e81074796ecac53dc (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
#
# ak-json2bash
# 
# Kaotisk Hund <kaotisk/kaotiskhund>
# 
# Strips " , { } from input and replaces ":" with =
#
# Usage:
# ipfs cat <hash> | ak-json2bash
sed -e 's/{//g' | sed -e 's/}//g' | sed -e 's/":"/=/g' | sed -e 's/"//g' | sed -e 's/,//g' | sed -e 's/ //g'