EETOP 创芯网论坛 (原名:电子顶级开发网)

标题: TCL 可以抓出所有文件嗎? [打印本页]

作者: a410600425    时间: 2015-3-25 13:34
标题: TCL 可以抓出所有文件嗎?
想返回自己根目录底下所有文件,Tcl可以实现吗?
作者: sjtusonic    时间: 2015-3-30 09:27
Find all the Tcl files in the user's home directory, irrespective of what the current directory is:

glob -directory ~ *.tcl
作者: a410600425    时间: 2015-3-30 13:15
回复 2# sjtusonic


   这个是8.5或者以上版本的吗?我的8.4会提示:   no files matched glob pattern "*.tcl"
作者: sjtusonic    时间: 2015-4-8 17:13


   
回复  sjtusonic


   这个是8.5或者以上版本的吗?我的8.4会提示:   no files matched glob pattern  ...
a410600425 发表于 2015-3-30 13:15




   我也用tcl8.4啊,启动tclsh,然后敲进去,可以用




欢迎光临 EETOP 创芯网论坛 (原名:电子顶级开发网) (https://bbs.eetop.cn/) Powered by Discuz! X3.5