delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/23/14:17:56

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
Message-ID: <004b01c1eaf3$104e3d40$0101a8c0@uwe>
From: "Uwe Steinfeld" <usteinfeld AT gmx DOT net>
To: <cygwin AT cygwin DOT com>
Cc: "Jim George" <jim DOT george AT blueyonder DOT co DOT uk>
References: <00d701c1ea8c$d1aea810$23b5fea9 AT GEORGE DOT CO DOT UK> <E16ztmS-0000dA-00 AT barry DOT mail DOT mindspring DOT net> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020423084411 DOT 00af4638 AT pop3 DOT cris DOT com>
Subject: Re: substr
Date: Tue, 23 Apr 2002 20:15:40 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

Just try

$ expr --version
expr (GNU sh-utils) 2.0.11
Written by Mike Parker.

Copyright (C) 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Greetings
Uwe

----- Original Message -----
From: "Randall R Schulz" <rrschulz AT cris DOT com>
To: <cygwin AT cygwin DOT com>
Cc: "Jim George" <jim DOT george AT blueyonder DOT co DOT uk>
Sent: Tuesday, April 23, 2002 5:47 PM
Subject: Re: substr


> Dear Elegant,
>
> Please be specific about what program implements the "expr substr"
command.
> The phrase "the command line" is not singly defined on any Unix (or
> Unix-like) system extant today.
>
> In this case, it's TCSH, which is not the default Cygwin shell (BASH is).
>
> Randall Schulz
> Mountain View, CA USA
>
>
> At 05:30 2002-04-23, Gilgamesh Nootebos wrote:
> >Michael A Chase wrote:
> >>On Tue, 23 Apr 2002 07:05:06 +0100 Jim George
> >><jim DOT george AT blueyonder DOT co DOT 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)
>
>
> --
> 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/
>


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