How to get a substring in ksh
In article <77nmnt$bs...@nnrp1.dejanews.com>,
Where is the original string? In a file, in an environment variable?
echo Day23 | sed -e "s/.*\(..\)/\1/"
yields 23 (but doesn't care whether the last two characters of the
string are numeric).
J. Hunter Johnson | "A little consistent wholesome modeling and
jhunt...@lexis-nexis.com | costly servanthood are worth millions of
(937) 865-6800 x5385 | true words harshly spoken."
Lexis-Nexis, Dayton, OH | -- Ron Sider