Trying both of the suggested: if [ $(stat -c%s $olddump) -eq $(stat -c%s $newdump) ] if [ `stat -c%s $olddump` -eq `stat -c%s $newdump`] yeild in the same result.
$ sh foo.shell [: 26: missing ] Backing up changes. Checking the md5sum of the files results in the same problems as using cmp. Even if I made no changes to my wiki, the dump from each day will still be slightly different. I'm just trying to get rid of dumps that have no real change in data, which makes checking based on file size from stat sufficient. I just can't figure out why I can't get it to compare the results from both stat commands. It's more frustrating than usual because normally I tend to figure things out shortly after asking for help, but this one still escapes me. ;-) -- John D. Mort http://john.mort.net _______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) MHVLS Auditorium Feb 6 - DBUS Mar 5 - Setting up a platform-independent home/small office network using Linux
