[9bdedb]: maxima-pre59 / bin / move-if-change  Maximize  Restore  History

Download this file

15 lines (14 with data), 110 Bytes

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