* substr
@ 2002-04-22 23:28 Jim George
2002-04-22 23:54 ` substr Michael A Chase
0 siblings, 1 reply; 8+ messages in thread
From: Jim George @ 2002-04-22 23:28 UTC (permalink / raw)
To: Cygwin
Folks,
can someone tell me which package provides the substr command line
routine?
TIA,
Jim
--
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: substr
2002-04-22 23:28 substr Jim George
@ 2002-04-22 23:54 ` Michael A Chase
2002-04-23 6:46 ` substr Gilgamesh Nootebos
0 siblings, 1 reply; 8+ messages in thread
From: Michael A Chase @ 2002-04-22 23:54 UTC (permalink / raw)
To: Cygwin, Jim George
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?
You can look for yourself by following the "setup.exe Package Listing"
link from http://cygwin.com/ .
In this case, you probably want sed, gawk, or Perl, there is no UNIX
command 'substr'.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
--
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: substr
2002-04-22 23:54 ` substr Michael A Chase
@ 2002-04-23 6:46 ` Gilgamesh Nootebos
2002-04-23 11:08 ` substr Randall R Schulz
2002-04-23 13:02 ` substr Jim George
0 siblings, 2 replies; 8+ messages in thread
From: Gilgamesh Nootebos @ 2002-04-23 6:46 UTC (permalink / raw)
To: Cygwin; +Cc: Jim George
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: substr
2002-04-23 6:46 ` substr Gilgamesh Nootebos
@ 2002-04-23 11:08 ` Randall R Schulz
2002-04-23 11:48 ` substr Uwe Steinfeld
2002-04-23 18:57 ` substr Gilgamesh Nootebos
2002-04-23 13:02 ` substr Jim George
1 sibling, 2 replies; 8+ messages in thread
From: Randall R Schulz @ 2002-04-23 11:08 UTC (permalink / raw)
To: cygwin; +Cc: Jim George
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: substr
2002-04-23 11:08 ` substr Randall R Schulz
@ 2002-04-23 11:48 ` Uwe Steinfeld
2002-04-23 18:57 ` substr Gilgamesh Nootebos
1 sibling, 0 replies; 8+ messages in thread
From: Uwe Steinfeld @ 2002-04-23 11:48 UTC (permalink / raw)
To: cygwin; +Cc: Jim George
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: substr
2002-04-23 11:08 ` substr Randall R Schulz
2002-04-23 11:48 ` substr Uwe Steinfeld
@ 2002-04-23 18:57 ` Gilgamesh Nootebos
2002-04-23 21:28 ` substr Randall R Schulz
1 sibling, 1 reply; 8+ messages in thread
From: Gilgamesh Nootebos @ 2002-04-23 18:57 UTC (permalink / raw)
To: Randall R Schulz, cygwin
Randall R Schulz wrote:
> Dear Elegant,
thank you kindly for calling me that, but my real name is Gilgamesh,
Elegant is part of my employers name.
>
> 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.
'usr/bin/expr.exe' is provided by sh-utils (
http://cygwin.com/cgi-bin2/package-cat.cgi?file=sh-utils/sh-utils-2.0-2&grep=expr
)
I'm not exactly sure if it is a builtin of tcsh/bash/ksh/ash, but I do
know it should be available outside a shell on a system that uses SUSv2
( http://www.opengroup.org/onlinepubs/007908799/xcu/expr.html ) as a
guideline(which Cygwin as a distribution tries to do AFAIK).
When I wrote my earlier post I didn't have a web connection but I did
double check on a HP-UX ksh terminal that it should work as I thought it
would. It even works using from a cmd.exe shell from W2K.
Regards,
Gilgamesh Nootebos
--
Gilgamesh Nootebos
@: nootebos@quicknet.nl
A great nation is any mob of people which produces at least one honest
man a century.
--
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: substr
2002-04-23 6:46 ` substr Gilgamesh Nootebos
2002-04-23 11:08 ` substr Randall R Schulz
@ 2002-04-23 13:02 ` Jim George
1 sibling, 0 replies; 8+ messages in thread
From: Jim George @ 2002-04-23 13:02 UTC (permalink / raw)
To: Cygwin
Thanks very much for this.
Jim
----- Original Message -----
From: "Gilgamesh Nootebos" <Gilgamesh.Nootebos@elegant.nl>
To: "Cygwin" <cygwin@cygwin.com>
Cc: "Jim George" <jim.george@blueyonder.co.uk>
Sent: Tuesday, April 23, 2002 1:30 PM
Subject: Re: substr
> 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/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-04-24 3:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-22 23:28 substr Jim George
2002-04-22 23:54 ` substr Michael A Chase
2002-04-23 6:46 ` substr Gilgamesh Nootebos
2002-04-23 11:08 ` substr Randall R Schulz
2002-04-23 11:48 ` substr Uwe Steinfeld
2002-04-23 18:57 ` substr Gilgamesh Nootebos
2002-04-23 21:28 ` substr Randall R Schulz
2002-04-23 13:02 ` substr Jim George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).