Re: 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

Re: Parms With Ranges

From: gamename <namesagame-usenet@yahoo.com>
Date: Sun Feb 26 2006 - 23:50:11 CET

Thanks!

-T
Kaitzschu wrote:
> On Sun, 26 Feb 2006, gamename wrote:
>
> > 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.
>
> This sounds just a bit too familiar :)
>
> Maybe you could take a look at
> http://groups.google.fi/group/comp.lang.tcl/browse_thread/thread/c6bc6d36acf86ddb
> and see if that gets you anywhere. Just remember, if this was a home work
> assignment you don't just copy and paste, do you :)
>
> --
> -Kaitzschu
> s="TCL ";while true;do echo -en "\r$s";s=${s:1:${#s}}${s:0:1};sleep .1;done
Received on Sun Apr 30 02:16:18 2006