home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
wdiff-0.5-src.tgz
/
tar.out
/
fsf
/
wdiff
/
cbars.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
1996-09-28
|
320b
|
13 lines
#!/bin/sh
# Produce change bars from two revisions of a document.
# Copyright (C) 1992 Free Software Foundation, Inc.
# Francois Pinard <pinard@iro.umontreal.ca>, 1992.
usage="$0 OLD_FILE NEW_FILE"
if [ $# -ne 2 ]; then
echo "$usage"; exit
fi
@bindir@/wdiff -1n $1 $2 | sed -e 's/^/ /;/{+/s/^ /|/;s/{+//g;s/+}//g'