-
-
Save arc279/127d266c7450dbaf38e7703bd9b5edee to your computer and use it in GitHub Desktop.
欠損のあるtsvをjsonに整形
This file contains hidden or 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
#!/bin/bash | |
cat a.tsv | nkf -Lu | \ | |
while IFS=$'\n' read x; do | |
echo "$x" | tr "\t" "\n" | while read y; do | |
# unquote | |
echo "$(eval echo $y)" | |
done | jo -a | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment