view move-if-change @ 100422:b3edbaf87682

(proced-grammar-alist): Allow refiner elements that are cons pairs (function . help-echo) or nil. (proced-refine): Use them. (proced-format-alist): Allow alternatives. (proced-descend): New variable. (proced-sort): New arg descend. (proced-sort-interactive): Repeated calls toggle sort order. (proced-format): Accomodate changes of proced-format-alist. Undefined attributes are displayed as "?". (proced-process-attributes): New optional arg pid-list. Ignore processes with empty attribute list.
author Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
date Sun, 14 Dec 2008 17:36:47 +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