Add existence check for given file. (How did I forget that?) Create automatic backup in temporary directory and use it to show overview of deleted commands. Make sed expression more readable by using double quotes for the whole regex and escaping the $ instead of a mix between single and double.