Documentation can be found at http://tcllib.sourceforge.net/doc/fileutil.html
Currently the fileutil package contains a find, grep, and cat . Other procs that would be useful to add would include wc, tee, head, tail, and perhaps some awk'ish type functions ala Tclx.
For more on grep, see "NR-grep: A Fast and Flexible Pattern Matching Tool" [L1 ].
Perhaps even some code like Glenn Jackman's:
proc touch {filename {time ""}} { if {[string length $time] == 0} {set time [clock seconds]} file mtime $filename $time file atime $filename $time }
glennj: This proc has been accepted into tcllib 1.2: http://tcllib.sourceforge.net/doc/fileutil.html
US Unix-like touch:
proc touch {filename {time ""}} { if {![file exists $filename]} { close [open $filename a] } if {[string length $time] == 0} {set time [clock seconds]} file mtime $filename $time file atime $filename $time }
What other file related procs would be useful?
Category Package, subset Tcllib