Article View: comp.unix.shell
Article #1273Getting at the first char of a string in Bourne shell
From: Ken Braithwaite
Date: Thu, 27 Sep 1990 21:09
Date: Thu, 27 Sep 1990 21:09
11 lines
874 bytes
874 bytes
I am trying to peel off one at a time the letters from a variable
in the Bourne shell, ie from Bourne get B and ourne.
How can I do this?
Thanks in advance.
----------------------------------------------------------------------
Ken Braithwaite | They couldn't hit an elephant at
| this dist
These opinions are solely | last words, General Sedgwick
my own. I don't share. |
----------------------------------------------------------------------
Technical Details
Message-ID:
<1308@ncrwat.Waterloo.NCR.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ncrlnk!ncrwat!images1!kenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ncrlnk!ncrwat!images1!ken From: ken@images1.Waterloo.NCR.COM (Ken Braithwaite) Newsgroups: comp.unix.shell Subject: Getting at the first char of a string in Bourne shell Message-ID: <1308@ncrwat.Waterloo.NCR.COM> Date: 27 Sep 90 21:09:01 GMT Sender: news@ncrwat.Waterloo.NCR.COM Lines: 11