1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-18 06:03:07 -07:00
rc/sh/baknow

9 lines
154 B
Plaintext
Raw Normal View History

2021-07-29 00:37:35 -07:00
#!/usr/bin/env sh
# YES_ZSH
baknow() { ### @-
2021-07-29 00:37:35 -07:00
cp -ip "${1:?missing file argument}" "$1.$(now "$1").bak"
}
[ "${SOURCING:-0}" -gt 0 ] || baknow "$@"