Subject: re: CVS commit: syssrc
To: None <jdolecek@netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: source-changes
Date: 07/13/2000 12:32:51
   
   Added Files:
   	syssrc/sys/conf: newvers_stand.sh
   
   Log Message:
   new MI bootblock versioning helper for generating vers.c,
   intended to replace all the various port's stand/*/newvers.sh scripts
   architectures will be switched to this gradually as tested


could you please look at my 'awk' version of thie script, that is in
several ports dirs?  it is faster than your grep/sed/head version..

it looks like:

	r=`awk '/^Version:/ { print $2 } ' $1`

though you might want to make it like:

	r=`awk '/^Version:/ { print $2; exit } ' $1`

just to be sure.


everyone should learn 'awk' better -- it does many of the jobs that
people use long pipelines for quite well.  one of perl's best points
is that it *highly* derived from awk...  :-)