Created
September 20, 2022 18:52
-
-
Save worace/e8051936db83799f372f23c2c3f5f6b9 to your computer and use it in GitHub Desktop.
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
csv2json () { | |
ruby -r csv -r json -e 'CSV.new(STDIN, headers: true).each { |r| puts r.to_h.to_json }' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment