2 lines
107 B
Bash
Executable file
2 lines
107 B
Bash
Executable file
#!/bin/sh
|
|
test -e "$1.bak" && ((test -e "$1" && mv "$1" /tmp); mv -n "$1.bak" "$1") || mv -n "$1" "$1.bak"
|