diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-18 08:33:02 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-18 08:33:02 +0200 |
commit | 606e3bd269fdc2cf687db82c43a5346f8081864f (patch) | |
tree | 2f88a716af27ebeacc7ef4c33fa467cf236c4477 /bin/json2bash | |
parent | 6cbf9b47f966556f92565392e83b410729c8be35 (diff) | |
download | arching-kaos-tools-606e3bd269fdc2cf687db82c43a5346f8081864f.tar.gz arching-kaos-tools-606e3bd269fdc2cf687db82c43a5346f8081864f.tar.bz2 arching-kaos-tools-606e3bd269fdc2cf687db82c43a5346f8081864f.zip |
Different approach on installing, now symlinks
Diffstat (limited to 'bin/json2bash')
-rwxr-xr-x | bin/json2bash | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/json2bash b/bin/json2bash new file mode 100755 index 0000000..347ca93 --- /dev/null +++ b/bin/json2bash @@ -0,0 +1,11 @@ +#!/bin/bash +# +# json2bash +# +# Kaotisk Hund <kaotisk/kaotiskhund> +# +# Strips " , { } from input and replaces ":" with = +# +# Usage: +# ipfs cat <hash> | 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' |