Date: Wed, 19 Jul 2000 21:48:45 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Stephen Montgomery-Smith <stephen@math.missouri.edu> Cc: stable@FreeBSD.ORG Subject: Re: Small handbook error Message-ID: <20000719214845.B75784@strontium.scientia.demon.co.uk> In-Reply-To: <3975C623.1EFBFAE8@math.missouri.edu> References: <Pine.BSF.4.21.0007190228330.18954-100000@wysoft.tzo.com> <3975C623.1EFBFAE8@math.missouri.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Stephen Montgomery-Smith wrote:
> diff -c new-file old-file
>
> or
>
> diff -c old-file new-file ?
SYNOPSIS
diff [options] from-file to-file
That will create a diff which takes you from "from-file" to "to-file",
so "from-file" is the original, "to-file" is your edited copy.
i.e.
$ cp foo.c foo.c.orig
$ vi foo.c
<hack, hack, hack>
$ diff -u foo.c.orig foo.c
--
Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D
FreeBSD Documentation Project /
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: sV15DiPwluW8t7qRD8sT22zHYi+itnP5
iQCVAwUBOXYULCsPVtiZOS99AQHFKgP/RuMuxTVYU37U/pONsmxzcjjxuDczj/BZ
TJYIR0gPCYuP7Y9fikIr4fOx6zdqP2vkcxj9l5ztQzZG628XMvvj08TICALVF7mU
3juhhAnXCZc/xI81Ap9Ou/4VVFxB2j41x+f+etZw/w7P0FAdIVczPvW+zCXJqTt/
/4C0OjRUDZY=
=I9Xq
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000719214845.B75784>
