Skip to content

Instantly share code, notes, and snippets.

@mLuby
Created September 2, 2016 21:04
Show Gist options
  • Save mLuby/98c481ccd1abcc528eb45f7145ae2482 to your computer and use it in GitHub Desktop.
Save mLuby/98c481ccd1abcc528eb45f7145ae2482 to your computer and use it in GitHub Desktop.
sed newline
# in data2.js replace , with ,\n then dump into data.js
cat data2.js | sed -e 's/,/,\'$'\n/g' > data.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment