Re: is tcl a reasonable alternative to unix shell scripts?
- From: "Jeff Godfrey" <jeff_godfrey@xxxxxxxxx>
- Date: Mon, 07 Aug 2006 21:02:03 GMT
I note that python and ruby have equivalents to the unix "find"
command, but I cannot find on skimming the tcl documentation that it
has a good set of tools for manipulating the file system.
Hi Charles,
Tcl has a library of "common" functions and utilities known as
"tcllib". While it's not part of the "core" of tcl, it's readily
available and easy to load and use. Among (many) other things, that
library contains a module named "fileutil", which in turn contains
"fileutil::find" - which is a Tcl variation of the Unix "find"
command.
That said, the Tcl core does contain *many* file (and filesystem)
related commands, most of which are collected under the "file"
ensemble command. So, check out "file" and its many sub-commands in
the standard Tcl man-pages for most of the built-in file support, and
take a look at the "fileutil" module of tcllib for other (mostly)
higher-level file utilities.
The tcllib library ships as a standard part of the ActiveState
ActiveTcl distribution, so that's likely the best place to get
everything all at once. Or, if you'd like, you can download the
library separately from http://tcllib.sourceforget.net .
Jeff
.
- Follow-Ups:
- Re: is tcl a reasonable alternative to unix shell scripts?
- From: Charles Russell
- Re: is tcl a reasonable alternative to unix shell scripts?
- References:
- is tcl a reasonable alternative to unix shell scripts?
- From: Charles Russell
- is tcl a reasonable alternative to unix shell scripts?
- Prev by Date: Re: Tcl firendly PDA
- Next by Date: Re: is tcl a reasonable alternative to unix shell scripts?
- Previous by thread: is tcl a reasonable alternative to unix shell scripts?
- Next by thread: Re: is tcl a reasonable alternative to unix shell scripts?
- Index(es):
Relevant Pages
|