Parms With Ranges
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Parms With Ranges

From: gamename <namesagame-usenet@yahoo.com>
Date: Sun Feb 26 2006 - 20:18:40 CET

Hi,

Anyone have any code that can work with ranges of values passed to a
script? For example:

foo.tcl -range "1-9,11,13,19"

Where :

"foo.tcl" is the script
"-range" is the parm
"1-9,11,13,19" is the ranges of values to be used. In this case, it
would be from 1 to 9, exclude 10, include 11, exclude 12, include 13,
exclude everything up to 18, and then lastly include 19.

TIA,
-T
Received on Sun Apr 30 02:16:12 2006