User Tools

Site Tools


linux:replace-characters-in-large-files

This is an old revision of the document!


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 '1s/"//g' sample.csv
linux/replace-characters-in-large-files.1696834698.txt.gz · Last modified: 2023/10/09 09:58 by odefta