Find all .orig files and rename them back

Always use

patch -b

command to create backup (.orig) files.

To find all the backup files and rename them back use:

find . -name '*.orig' -execdir bash -c 'cp -v {} ./$(basename {} .orig)' \;

Leave a Reply

Your email address will not be published. Required fields are marked *