2 # Like mv $1 $2, but if the files are the same, just delete $1.
3 # Status is zero if successful, nonzero otherwise.
5 usage
="$0: usage: $0 SOURCE DEST"
9 *) echo "$usage" >&2; exit 1;;
12 for arg
in "$1" "$2"; do
14 -*) echo "$usage" >&2; exit 1;;
18 if test -r "$2" && cmp -s "$1" "$2"; then
This page took 0.0294 seconds and 4 git commands to generate.