Skip to content

Instantly share code, notes, and snippets.

@evaldosantos
Created August 30, 2017 20:06
Show Gist options
  • Save evaldosantos/9489d931e223787627e2eca7e13e98ca to your computer and use it in GitHub Desktop.
Save evaldosantos/9489d931e223787627e2eca7e13e98ca to your computer and use it in GitHub Desktop.
#/bin/sh
filename=$1
language=$2
output_file=$3
jq --null-input "$(cat $filename)" | jq -r '.' | jq ".[] | {title: .title_" > $output_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment