From: John P . Looney (valen at domain tuatha.org)
Date: Thu 21 Oct 1999 - 17:30:17 IST
On Thu, Oct 21, 1999 at 03:46:20PM +0100, Breathnach, Proinnsias(Dublin) mentioned:
> This one has got me slightly stumped ...
> Is there an *easy* way to ensure that two files are *identical* ?
> File size isn't always accurate, and I really want to have the option to
> view the differences...
> diff isn't suitable for this as the files in question are very long-lined
> csv files, up to 3 or 4 MB in size on average, and diff tends to either fall
> over or produce gibberish from them ...
if [ `sum file1` -eq `sum file2` ] ; then
echo "Look equal to me"
elif
echo "Don't look equal"
fi
Kate
-- Microsoft. The best reason in the world to drink beer. http://www.redbrick.dcu.ie/~valen
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:46 GMT