groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Re: Groff digest, Vol 1 #1807 - 4 msgs


From: Larry McVoy
Subject: [Groff] Re: Groff digest, Vol 1 #1807 - 4 msgs
Date: Mon, 19 Jul 2004 20:38:16 -0700
User-agent: Mutt/1.4.1i

>    1. 2nd try -- Would you like a diffmk that works on Linux? (M Bianchi)

It's just a shell script.

if test -z "$3" -o "$3" = "$1" -o "$3" = "$2"; then
        echo "usage: name1 name2 name3 -- name3 must be different"
        exit
fi
diff -e $1 $2 | (sed -n -e '
/[ac]$/{
        p
        a\
.mc |
: loop
        n
        /^\.$/b done1
        p
        b loop
: done1
        a\
.mc\
.
        b
}

/d$/{
        s/d/c/p
        a\
.mc *\
.mc\
.
        b
}'; echo "w $3") | ed - $1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]