Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Glob with -tail arg question

Status
Not open for further replies.

Ati2ude

Programmer
Dec 11, 2001
79
US
I have the following line:

set savefile_list [glob -nocomplain -tails -directory $process_dir *.idx]

when executed I get:

Error: bad option "-tails": must be -directory, -join, -nocomplain, -path, -type
s, or --
while executing
"glob -nocomplain -tails -directory $process_dir *.idx"

Am I placing the -tails option in the wrong place?

Thanks in advance for any insight.

Ati2ude
 
Thanks, that was the issue, in case anyone needs a work around here it is.


set savefile_list [glob -nocomplain -directory $process_dir *.* -types f]

set file_name [file tail $savefile]


Thanks for your help.

Ati2ude
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top