Spacing was the issue. Thanks for the hand-holding Greg! -- John D. Mort http://john.mort.net
On Feb 17, 2008 4:55 PM, Greg Priest-Dorman <[EMAIL PROTECTED]> wrote: > Please send your full script so we can look at it. The following > works and does what you are asking it to do. It sounds like you are > not putting in needed white space between the various separators. If > working properly there is a differance between the square bracket back > tick approch and the dollar sign parenthesis approach, but you are not > even getting that far. Check your white space and/or cut and paste > this version and see what happens: > > #!/bin/bash > # gepd 2008.02.17 > # give it 2 file names to compair the size by byte count > if [ `stat -c%s $1` -eq `stat -c%s $2` ] > then > echo "$1 and $2 have the same byte count." > else > echo "$1 and $2 have different byte counts." > fi _______________________________________________ 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
