Linux--shell typeset

版权声明:本文虽为博主原创文章,但是,如果能有帮助的话,允许大家转载 https://blog.csdn.net/xinyuanqianxun1987/article/details/52872999

today, I have tried typeset to declare variables with specific attribute. 

like 

typeset -l: it will turns uppercase characters in value of parameter converted to lowercase.

for example:

     #!/bin/ksh
     typeset -l  a="AB"
     echo $a

   output: ab    #it turns "AB" to "ab"




  

    

      


猜你喜欢

转载自blog.csdn.net/xinyuanqianxun1987/article/details/52872999
今日推荐