>: >
>: >
>: > >Does anyone know of a 'diff' tools which runs under
>: > >Sun Solaris and which gives a visual representation
>: > >of differences between two files?? I am looking
>: > >for something like dxdiff which runs on DEC ultrix -
>: > >dxdiff shows shaded area of text segments which have
>: > >been moved between one file and the next.
>: > >Thanks for any help.
>: >
>: > I'm not familiar with dxdiff, but you may want to try tkdiff.
>: >
>: Another nice tool I used to like was mgdiff - a Motif-based front end
>: to a regular diff; last year, it could be found at
>: http://ftp.funet.fi/pub/pics/viewers/X11/applications/
>: don't know if it's still there ...
>If you have SPARCworks installed, use filemerge. It's really nice.
A wrapper I wrote for it follows - allows you to use the diff style
of arguments "diff file path"
-------- cut here ------------
#! /bin/sh
#
# vdiff FILE1 FILE2
# visual diff
if [ $# -lt 2 ] ; then
echo " usage: `basename $0` {file1} {file2}"
exit 1
fi
if [ -d $1 -a -d $2 ] ; then
echo "$0: both are directories, give me something to work with!"
exit 2
fi
l=$1
r=$2
if [ -d $1 ] ; then
l="$1/`basename $2`"
elif [ -d $2 ] ; then
r="$2/`basename $1`"
fi
/opt/SUNWspro/bin/filemerge -r $l $r &
jack
--
Jack Bochsler Sun Microsystems Computer Company
619/625-3768 San Diego, CA 92121-5288