2012年4月6日

Linux命令之declare - 声明shell变量(不知道没关系、知道了就更好的内建命令)

摘要: 本文链接:http://codingstandards.iteye.com/blog/1150109 (转载请注明出处)用途说明declare命令是bash的一个内建命令,它可以用来声明shell变量,设置变量的属性(Declare variables and/or give them attributes)。该命令也可以写作typeset。虽然人们很少使用这个命令,如果知道了它的一些用法,就会发现这个命令还是挺有用的。常用参数格式:declare格式:typeset格式:declare -p格式:typeset -p显示所有变量的值。格式:declare -p var格式:typeset - 阅读全文

posted @ 2012-04-06 15:34 周健 阅读(1599) 评论(0) 推荐(0) 编辑

导航