Automatic File Patching

Hi All,

I have a query regarding the automatic patching on files in unix

Suppose I have a file names - abc.txt and I take its backup as abc.txt_bkp and then do some changes in abc.txt and save it as abc.txt_new.

Now I want to automatically apply the changes done on abc.txt to abc.txt_bkp so that the new file abc.txt_bkp_new is same as abc.txt_new.

Can it be done automatically? I have heard of patch command which uses the output of diff command but I am not sure if we have any better way to do it?

Thanks for your inputs.

Regards
Shubham