simple/tiny/save

6 lines
78 B
Bash
Executable File

#!/bin/sh
for i in "$@"
do
mv "$i" "$i.orig" && cp -p "$i.orig" "$i"
done