delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/11/14:35:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Joe Buehler <jbuehler AT hekimian DOT com>
Subject: Re: Beginnings of a patch: /etc/hosts
Date: Wed, 11 Sep 2002 14:34:58 -0400
Lines: 10
Message-ID: <alo2c9$5ev$1@main.gmane.org>
References: <alnsit$g2m$1 AT main DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 44 DOT 0209111345160 DOT 1269-300000 AT slinky DOT cs DOT nyu DOT edu>
NNTP-Posting-Host: hekimian.com
Mime-Version: 1.0
X-Trace: main.gmane.org 1031769289 5599 206.205.138.10 (11 Sep 2002 18:34:49 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Wed, 11 Sep 2002 18:34:49 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1) Gecko/20020826
X-Accept-Language: en-us, en

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019