Subject: Re: How to compute the checksum of patch files
To: Martin Husemann <martin@duskware.de>
From: Roland Illig <rillig@NetBSD.org>
List: tech-pkg
Date: 12/01/2005 10:40:16
Martin Husemann wrote:
> On Thu, Dec 01, 2005 at 01:15:13AM -0800, Jeremy C. Reed wrote:
> 
>>sed -e '/\$NetBSD.*/,1d'
> 
> 
>    sed -e '1,1s/^\$NetBSD.*//'
> 
> Not sure about the \ and $ count ;-)

This would not delete the line but leave a newline character, so it does 
not work.

     awk '!(NR == 1 || $0 ~ /^\$NetBSD[:\$]/) { print $0; }'

Roland