Created
December 11, 2019 10:27
-
-
Save d-baranowski/7a1880372c3ad27a4f37125d7ad0b8a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
jq -cr 'keys[] as $k | "\($k)\n\(.[$k])"' $1 | while read -r key; do | |
tmpfile=$(mktemp /tmp/item.XXXXXX) | |
read -r item | |
printf '%s' "$item" > "$tmpfile" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment