Skip to content

Instantly share code, notes, and snippets.

@fredhsu
Created April 6, 2017 17:35
Show Gist options
  • Save fredhsu/f3d811857086256b9a73684c9052460a to your computer and use it in GitHub Desktop.
Save fredhsu/f3d811857086256b9a73684c9052460a to your computer and use it in GitHub Desktop.
One liner to add quotes, a carriage return, and a trailing comma with sed
sed 's/.*/"&\\n",/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment