I want to replace a string which occurs in several files. For a single file I am able to do using unix command :
sed 's/error("/printf( "ERROR : /g' all_reset_test.c > new_reset/all_reset_test.c
which replaces all 'error("'
with 'printf( "ERROR : '
in this file.
But I have over 100 files for which I need to do this. I am looking for how to run this command for all files at once in either a perl or a python script.