摘要: linux中shell变量$#,$@,$0,$1,$2的含义解释变量说明: $$ Shell本身的PID(ProcessID) $! Shell最后运行的后台Process的PID $? 最后运行的命令的结束代码(返回值) $* 所有参数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n 阅读全文
posted @ 2018-01-17 20:35 酸奶加绿茶 阅读(228) 评论(0) 推荐(0) 编辑
摘要: dirname strip last component from file name (strip 除去,剥去) 把文件的绝对路径的最后一个除去 如: eric@eric-virtual-machine:~/ethdev1$ dirname /home/eric/ /root/ /opt/home 阅读全文
posted @ 2018-01-17 20:17 酸奶加绿茶 阅读(189) 评论(0) 推荐(0) 编辑