> -----Original Message-----
> From: Charles Steinkuehler

> To get around this problem (if necessary), you'll either need to 
> recursively parse each digit of the parameter to see if it's a number 
> (ugly, but relies only on built-in shell commands)...something like:

pn] Somehow I knew you'd reply in a jiffy!  You are the Master of
Parameter Expansion!  To make sure I understand it, the IF in ParseChar
says... 

  If the length of this number is >= 2 digits, send 
  everything after the first digit back through Parse.

pn] Right?

> ...or pass the whole thing to something like sed that can 

pn] There's a lot to be said about relying only on built-in shell
commands.  Your code worked as is in bash (whatever version comes with
SuSE 8.2).

> deal with a decimal (only one!)

pn] :O

pn] Many thanks.  I'm running up a tab with you.  ;)




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to