mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
13 lines
217 B
Bash
13 lines
217 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Backup critical file before editing (in current dir)
|
||
|
# 2024.Mar kneutron
|
||
|
|
||
|
cp -v "$1" "$1".bkp.$(date +%Y%m%d@%H%M%S)
|
||
|
|
||
|
ls -lh "$1*"
|
||
|
echo "Backed up $1 - OK to edit - Press enter"
|
||
|
read -n 1
|
||
|
|
||
|
$EDITOR "$1"
|