view move-if-change @ 76157:feb31772fcd1

(section{Visibility Cycling}): Document key for indirect buffer access. (section{Archiving}): New keys for archiving. (section{Tables}): Combine two lines for hline creation. Named-field formula changed to Field formula. (section{Links}): Document keys for finding links. (section{Agenda Views}): New key for agenda file cycling. Document keys for stuck projects. Typos fixed. (section{Exporting and Publishing}): Export options no longer in reference card.
author Carsten Dominik <dominik@science.uva.nl>
date Mon, 26 Feb 2007 11:57:51 +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