Last active
January 8, 2018 13:08
-
-
Save mrsarm/24e8531ef8375c768e03d1c1aea67262 to your computer and use it in GitHub Desktop.
jl2json.sh: JSON line file to JSON file converter
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
#!/bin/sh | |
# | |
# jl2json.sh: JSON line file to JSON file converter | |
# | |
# Usage: ./jl2json.sh sample.jsonl sample.json | |
# | |
echo "[" > $2 ; sed '$!s/$/,/' $1 >> $2 ; echo "]" >> $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment