Hello, I would like to to do a file compare, this compare will give me the byte count and if there is a difference, I would like the output to tell me what file byte difference is from both files. I have a static file that will be used to do a comparison with, within this file is a list of file names, but I am not sure how I can get a byte count unless I create a different file with that information(byte) on it. Okay, enough of the blah, blah, does anybody know how I can add to the script below and compare the byte count of each file that is in a static file to the files on a system?
Here is the script I would like to add to.
I hope I am making sense. Thanks to all of you.
#!/bin/ksh
SERVER=`uname -n`
DIR=/REGO
FILELIST=/DJ/PUB/testrego
for xx in `cat $FILELIST`
do
if [ ! -f $xx ]
then
print "File Missing:$DIR$xx- On Machine:${SERVER}"
fi
done < ${FILELIST}
Here is the script I would like to add to.
I hope I am making sense. Thanks to all of you.
#!/bin/ksh
SERVER=`uname -n`
DIR=/REGO
FILELIST=/DJ/PUB/testrego
for xx in `cat $FILELIST`
do
if [ ! -f $xx ]
then
print "File Missing:$DIR$xx- On Machine:${SERVER}"
fi
done < ${FILELIST}