This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: substr


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@cris.com>
To: <cygwin@cygwin.com>
Cc: "Jim George" <jim.george@blueyonder.co.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.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)
>
>
> --
> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]