Hans
2006-05-30 20:06:51 UTC
Hi,
I have some problems about file handling in Tcl/Tk.
1. Can file command supports name wildcard?
In one directory, I may have some files like file1_may_1.dat and
file1_june_2.dat, Can I use a similar command as "file exists file1*"
to confirm there are some this kind of files? I tested "file exists
file1*" but it doesn't work.
2. Can I get file list which have similar name prefix and order them by
creating time?
same case, Is there a command to let me to get the list of files and
order them by creating time? like "file1_may_1.dat file1_june_2.dat
file1_june_3.dat".
thanks in advance.
Hans Yin
I have some problems about file handling in Tcl/Tk.
1. Can file command supports name wildcard?
In one directory, I may have some files like file1_may_1.dat and
file1_june_2.dat, Can I use a similar command as "file exists file1*"
to confirm there are some this kind of files? I tested "file exists
file1*" but it doesn't work.
2. Can I get file list which have similar name prefix and order them by
creating time?
same case, Is there a command to let me to get the list of files and
order them by creating time? like "file1_may_1.dat file1_june_2.dat
file1_june_3.dat".
thanks in advance.
Hans Yin