On Mon, 2003-10-20 at 06:15, Kurt V. Hindenburg wrote: > Anyone know a diff program that you can skip # lines at the beginning > of each files? Googling for diff is about worthless... The following Perl script should do what you want:
#!/usr/bin/perl ($line, $file1, $file2) = @ARGV; open F, $file1; @file1 = <F>; open F, $file2; @file2 = <F>; close F; for ($i = $line; $i <= $#file1; $i++) { unless ($file1[$i] eq $file2[$i]) { print "> $file1[$i]"; print "< $file2[$i]"; } } Although if these are very large files I wouldn't use this script as it loads both files into memory! Hope it helps anyway. Cheers Dg -- [EMAIL PROTECTED] mailing list