Created
July 1, 2013 22:18
-
-
Save localstatic/5905122 to your computer and use it in GitHub Desktop.
Convert list of items (one item per line) to single CSV line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat input.txt | sed 's/\(.*\)/\1,/' | tr \\n ' ' | sed 's/, $//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment