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: 2025/01/02 16:59 by 127.0.0.1