For the purposes mentioned and similar, I've often thought it would be good to have an editor (or editor mode) where the changes are logged somewhere. ? /etc/edits.log
#logging_editor /etc/fstab edits.log would show <date and time> <user> <file> added line "xyz", changed "abc" to "def" and so on. It might even serve as a script file to redo the same edits... (save this file, install standard system, run customization script...) Does anyone have any tips on how to accomplish this with existing editors? thanks Eliot PS already have some ideas, but maybe theres a better way (theres certainly another way...) cp $1 $1.orig favourite_editor $1 echo "$1" >> edits.log date >> edits.log whoami >> edits.log diff $1.orig $1 >> edits.log rm $1.orig
