摘要: 1, Ubuntu安装gitsudo apt-get install git-core2, Redhat安装gitsudo yum install git-all3, ruby和SHELL沟通ifconfig = `/sbin/ifconfig` #``为反引号,1旁边的那个键,用来引用SHELL下的指令,非常方便,返回命令执行后的response给ifconfigip = /[\d{2}.]{4}/.match(ifconfig)4, 数组赋值array = %w{it is like you are back from the dead}=> ["it", &qu 阅读全文
posted @ 2014-01-15 18:37 纵情向前.... 阅读(171) 评论(0) 推荐(0) 编辑