Skip to content

Commit

Permalink
one line json
Browse files Browse the repository at this point in the history
  • Loading branch information
bokutotu committed Nov 15, 2024
1 parent a16018b commit 4302301
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 17,086 deletions.
6 changes: 6 additions & 0 deletions oneline_json.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

git ls-files '*.json' | while read file; do
jq -c . "$file" > "$file.tmp" && mv "$file.tmp" "$file"
done

Loading

0 comments on commit 4302301

Please sign in to comment.