I have a file of 10GB data, I want to execute 2048 substitution expressions of
sed -i 's/pattern/replace_pattern/g' on that file.
Is there a way to do it faster and effectively.
Currently, I am launching
perl in sequential order.
sed -i "s/VSS:F31128015/VSS_F31128015/g" file.data sed -i "s/VSS:F31127969/VSS_F31127969/g" file.data OR perl -pi -e 's/VSS\:F31128015/VSS_F31128015/g' file.data perl -pi -e 's/VSS\:F31127969/VSS_F31127969/g' file.data
I did notice very less difference in speed of execution by
Is there a better way to do this? I have almost 2048 expressions of replacement.
will opening 10GB file via
Tcl/tk and using
regexp be a better idea?
Should I use lex?