Created
August 31, 2016 09:37
-
-
Save ableasdale/f529aee0145ae5e6d18e629d16193c77 to your computer and use it in GitHub Desktop.
Using sed to add/remove characters to lines in a large file
This file contains hidden or 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
# 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