Subject: Re: Beginnings of a patch: /etc/hosts
From: Joe Buehler <[email-masked]>
To: [email-masked]
Date: Wed, 11 Sep 2002 14:34:58 -0400

Igor Pechtchanski wrote:

> +    WFILE=`echo $FILE | sed 's/^\(.\{0,8\}\).*/\1/'`

If you think that inelegant, try using this:

     expr substr "$FILE" 1 8

Joe Buehler

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/