TCL培训教程(全) 华为内部资料
1.2.6 string length string......................................................................................................................30
1.2.7 string match ?-nocase? pattern string.........................................................................................30
1.2.8 string range string first last.........................................................................................................30
1.2.9 string repeat string count.............................................................................................................30
1.2.10 string replace string first last ?newstring?................................................................................31
1.2.11 string tolower string ?first? ?last?.............................................................................................31
1.2.12 string toupper string ?first? ?last?.............................................................................................31
1.2.13 string trim string ?chars?.........................................................................................................31
1.2.14 string trimleft string ?chars?.....................................................................................................31
1.2.15 string trimright string ?chars?...................................................................................................31
2 文件访问...........................................................................................................................................................31
2.1 文件名....................................................................................................................................................31
2.2 基本文件输入输出命令........................................................................................................................32
2.3 随机文件访问........................................................................................................................................33
2.4 当前工作目录.......................................................................................................................................34
2.5 文件操作和获取文件信息....................................................................................................................34
3 错误和异常.......................................................................................................................................................39
3.1 错误........................................................................................................................................................39
3.2 从TCL脚本中产生错误........................................................................................................................41
3.3 使用catch捕获错误................................................................................................................................41
3.4 其他异常................................................................................................................................................42
1 深入TCL............................................................................................................................................................44
1.1 查询数组中的元素................................................................................................................................44
1.2 info命令.................................................................................................................................................46
1.2.1 变量信息.....................................................................................................................................46
1.1.1 过程信息.....................................................................................................................................47
1.1.2 命令信息.....................................................................................................................................49
1.1.3 TCL的版本和库........................................................................................................................49
1.1.4 命令的执行时间........................................................................................................................49
1.1.5 跟踪变量....................................................................................................................................49
1.1.6 命令的重命名和删除................................................................................................................52
1.1.7 unknown命令.............................................................................................................................53
8/5/2021 版权所有,好好利用 第4页,共72页
- 1
- 2
前往页