emp*_*ell 4 clearcase find chmod
我试图递归更改目录中的所有.exe.
在发布之前我做了一些挖掘并最终找到了我需要的东西.如果有人可以使用这些信息,我会回答我的回答.希望没关系,我是新来的.
ct find . -all -name *.bat -print -exec "cleartool protect -chmod +x -file ""%CLEARCASE_PN%"""
Run Code Online (Sandbox Code Playgroud)
当您考虑手册页cleartool find和其他示例时cleartool find
-all通常用于相当长的搜索,特别是对于具有悠久历史的大型vob,因此您希望添加选择标准以减少时间,例如" -type f仅考虑文件".-print'是没有必要的,除非你想要更改所有.exe的列表,但打印每个元素的简单事实可能会大大减慢操作.\"doskey ct=cleartool $*),否则ct不存在所以:
ct find . -all -type f -name "*.bat" -exec "cleartool protect -chmod +x -file \"%CLEARCASE_PN%\""
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3372 次 |
| 最近记录: |