You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
242 B

#!/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