in reply to Edit a text file line by line
See perlrun and Traverse a directory tree
perl -i.bak -pe 's/Manual_common_macros/test_macros/g' myfile.txt [download]
hth,PooLpi