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 fileDecember 24, 2018 ยท wiki@snet.atexport EDITOR=vi; if [ -f "$1" ]; then cp $1{,@"$(date +%Y%m%y_%H%M%S)"}; $EDITOR $1; fi