parent
c2d29c3b22
commit
c5fd08bb76
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
i=0 |
||||||
|
|
||||||
|
cat - | tr '.' '\n' | while read line; do |
||||||
|
[ "$i" -eq 0 ] && echo -e "Header:\n-------" |
||||||
|
[ "$i" -eq 1 ] && echo -e "Body:\n-----" |
||||||
|
[ "$i" -eq 2 ] && break |
||||||
|
echo "$line" | base64 -d 2> /dev/null | jq |
||||||
|
i=$((i+1)) |
||||||
|
done |
||||||
|
|
Loading…
Reference in new issue