1. find
根据名称寻找文件:
find /u01 -name "alert*.log"
忽略文件大小写
find /u01 -iname "alert*"
同时find多个匹配, alert*.log以及后缀名是dbf的文件
find /u01 \( -name "alert*.log" -o -iname "*.DBF" \)
2. 获取变量值长度
[root@db12c ~]# var=123456
[root@db12c ~]# echo ${#var}
6
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8520577/viewspace-2103749/
,如需转载,请注明出处,否则将追究法律责任。