↧
转载几个非常棒的Linux Shell命令
原文出处: http://www.isspy.com/most_useful_linux_commands_1/ http://www.isspy.com/most_useful_linux_commands_2/ 1.以sudo运行上条命令 1 $ sudo !!...
View Articleshell中的几种i++
原文出处:http://hi.baidu.com/liamxd/blog/item/a4baf903f833a2064bfb5195.html 挺有趣的:) 其他语言中的$i++操作在shell中表示如下: #!/bin/bash n=1;echo -n “$n ” let “n = $n + 1″ echo -n “$n ” : $((n = $n + 1)) echo -n “$n ” (( n...
View Article在ruby中运行shell命令的6种方法
原文地址:http://tech.natemurray.com/2007/03/ruby-shell-commands.html 就不翻译了,呵呵 Often times we want to interact with the operating system or run shell commands from within Ruby. Ruby provides a number of...
View Article