Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3CC553EC.4010607@elegant.nl>
Date: Tue, 23 Apr 2002 14:30:36 +0200
From: Gilgamesh Nootebos <Gilgamesh.Nootebos@elegant.nl>
Reply-To: Cygwin <cygwin@cygwin.com>
Organization: The Elegant Group
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc1) Gecko/20020417
X-Accept-Language: nl, en-us
MIME-Version: 1.0
To: Cygwin <cygwin@cygwin.com>
CC: Jim George <jim.george@blueyonder.co.uk>
Subject: Re: substr
References: <00d701c1ea8c$d1aea810$23b5fea9@GEORGE.CO.UK> <E16ztmS-0000dA-00@barry.mail.mindspring.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Michael A Chase wrote:
> On Tue, 23 Apr 2002 07:05:06 +0100 Jim George <jim.george@blueyonder.co.uk> wrote:
> 
> 
>>    can someone tell me which package provides the substr command line
>>routine?
> 
> In this case, you probably want sed, gawk, or Perl, there is no UNIX
> command 'substr'.

from the commandline you can use 'expr substr <string> <begin> <length>'

it's crude and OT but I just happened to need it today so I remembered this.

-- 
Gilgamesh Nootebos (Elegant Relational Development)
@: Gilgamesh.Nootebos@elegant.nl



--
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/

