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