Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 31, 2016 09:37
Show Gist options
  • Save ableasdale/f529aee0145ae5e6d18e629d16193c77 to your computer and use it in GitHub Desktop.
Save ableasdale/f529aee0145ae5e6d18e629d16193c77 to your computer and use it in GitHub Desktop.
Using sed to add/remove characters to lines in a large file
# Add characters to end of line
sed 's/$/",/' file1.txt > file2.txt
# Add characters to beginning of line
sed 's/^/"/' file1.txt > file2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment