Need to replace function with another one, which has same name
for example I have to files. file1 and file2.
file1 and file2 consist of shell code blocks, which have functions and all sort of special characters.
So I wan't to replace all function and its content from file1 with same function and all their content of file2.
I used sed with that, but I am unable to execute properly sed because of special characters escaping which gives me truble.
Anyone has soulution?
|