view move-if-change @ 5302:6468cf6f0b9d

Correct argument name in docstring, #'random. 2010-11-14 Aidan Kehoe <kehoea@parhasard.net> * fns.c (Frandom): Correct the docstring here, the name of the argument is LIMIT, not N.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 14 Nov 2010 14:13:06 +0000
parents 376386a54a3c
children
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