Date: Fri, 11 Nov 2005 13:16:15 -0500 From: "Steve Bertrand" <iaccounts@ibctech.ca> To: "'FreeBSD Questions'" <questions@freebsd.org> Subject: Understanding a patch file [OT?] Message-ID: <20051111181620.B684443D5D@mx1.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi everyone...
This may be off-topic, but I know someone may be able to help. I am
trying to better understand how to use diff, and moreso, understand it's
output.
In particular, I can't quite grasp exactly what the identifiers in
between @@ and @@ represent exactly. Here is a patch file I created. The
first change looks like it will replace lines 1 through 5, but then I
look at the second change, and it completely confuses me (-11,6 +11,8).
Can someone please clarify why 11 and 8?
--- randbak.pl Wed Oct 12 17:27:10 2005
+++ randbak2.pl Fri Nov 11 13:06:51 2005
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-
+#
use warnings;
use strict;
use Storable;
@@ -11,6 +11,8 @@
my $num;
my $sum = "sum";
my $total = 0;
+
+# Test
if (-e "randomcount"){
$href = retrieve ("randomcount");
Thank you for any advice!
Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051111181620.B684443D5D>
