view move-if-change @ 61880:661ef1edb844

(Shell): Add `Shell Prompts' to menu. (Shell Mode): Add xref to `Shell Prompts'. Clarify `C-c C-u' description. Delete remarks moved to new node. (Shell Prompts): New node. (History References): Replace remarks moved to `Shell Prompts' with xref to that node. (Remote Host): Clarify how to specify the terminal type when logging in to a different machine.
author Luc Teirlinck <teirllm@auburn.edu>
date Wed, 27 Apr 2005 00:06:36 +0000
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi