Understanding a patch file [OT?]
Steve Bertrand
iaccounts at ibctech.ca
Fri Nov 11 18:16:25 GMT 2005
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
More information about the freebsd-questions
mailing list