SHELL 变量进阶
2015年1月27日
没有评论
1.${#var}
查看变量的长度
[test@Server1 shell]$ unset name
[test@Server1 shell]$ name=tom
[test@Server1 shell]$ echo ${name}
tom
如果变量为设[......]
分类: Linux Shell, 操作系统
1.${#var}
查看变量的长度
[test@Server1 shell]$ unset name
[test@Server1 shell]$ name=tom
[test@Server1 shell]$ echo ${name}
tom
如果变量为设[......]