User Tools

Site Tools


linux:replace-characters-in-large-files

Replace characters in very large files

We can use the sed command.

Example - replace “” with “:

sed -i 's/""/"/g' sample.csv

Get rid of all ”:

sed -i 's/"//g' sample.csv

Get rid of “ on the first line only:

sed -i '1s/"//g' sample.csv
linux/replace-characters-in-large-files.txt · Last modified: 2023/10/09 09:59 by odefta