Skip to content

Instantly share code, notes, and snippets.

@evandbrown
Last active August 29, 2015 14:23
  • Select an option

Select an option

Revisions

  1. evandbrown revised this gist Jun 30, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1,5 @@
    ls *.json | sed -e 's/\.json//' | while read x; do ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))' < $x.json > $x.yaml; done
    ls *.json | \
    sed -e 's/\.json//' | \
    while read x; do \
    ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))' < $x.json > $x.yaml; \
    done
  2. evandbrown created this gist Jun 30, 2015.
    1 change: 1 addition & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ls *.json | sed -e 's/\.json//' | while read x; do ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))' < $x.json > $x.yaml; done