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'