Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设路径x/y/z有 5 个目录,即:
x/y/z
1.1 1.2 1.3 1.4 1.5
现在我只想打印那些大于1.1.
1.1
如果在另一个路径a/b/c中存在相同的目录,但1.2缺少目录,则它应打印1.3为下一个目录,该目录高于1.1.
a/b/c
1.2
1.3
如何做到这一点tclsh?
tclsh
输出应该是这样的:
x/y/z/{version higher than 1.1}
例如:
x/y/z/1.2
或者
x/y/z/1.4