I have a CSV file which is around 3 GB having 20 million lines. I am trying to replace a string in a line using sed but it takes around 12 minutes on my i5 processor with 4GB RAM. This is the command I am using right now.
sed -i '27s/string1/string2/' hugetext.csv
Is there a faster way to do it?