export EDITOR=vi; if [ -f "$1" ]; then cp $1{,@"$(date +%Y%m%y_%H%M%S)"}; $EDITOR $1; fi
Backup before editmake a backup before the editor opens the file<span title='2018-12-24 13:37:19 +0200 +0200'>December 24, 2018</span> ยท wiki@snet.atexport EDITOR=vi; if [ -f "$1" ]; then cp $1{,@"$(date +%Y%m%y_%H%M%S)"}; $EDITOR $1; fi