To get a list of the files in directory /tmp/abcd:
set file_list [glob -nocomplain /tmp/abcd/*]
To write the list to a file, simply open a file for write and run through file_list with a foreach. If you need more info than just the file name, you can use the "file" command to get...