Thanks inameiname, looks great, I learned something about UNIX again...
One suggestion though, your uninstall simply moves back the before saved file. Great if no other changes have been done in the meantime.
But a safer way would be to redo the replace statement and then delete the (completely unused, but still good to have) bkp file.
|