最新文章列表

how to shuffle an array in shell

http://bash-hackers.org/wiki/doku.php/mirroring/bashfaq/026
standalone 评论(0) 有800人浏览 2009-11-06 09:36

shell能否实现多线程编程?

http://www.linuxsir.org/bbs/thread98905.html
standalone 评论(0) 有1031人浏览 2009-11-06 09:35

shell中计算

a=10b=2c=$[ $a + $b ]echo $c
standalone 评论(0) 有967人浏览 2009-10-15 14:56

shell获取ip地址

ip=$(grep $(hostname) /etc/hosts| awk '{print $1}')
standalone 评论(0) 有1633人浏览 2009-08-25 21:28

xargs: How To Control and Use Command Line Arguments

 am trying to use xargs command using shell pipes and not able to understand how to control and use command line arguments. For example I'd like to find out all *.c file located in 100s of sub ...
standalone 评论(0) 有1186人浏览 2009-08-13 09:59

shell脚本 expr 运算

  expr a op b   要注意的是a b 和op之间的空格。   乘法:   fileNum=`expr $slaveNum \* 5 + 5`
standalone 评论(0) 有3134人浏览 2009-08-12 15:39

grep: writing output: Broken pipe

ls -t $FOLDER | grep "stat"| head -$fileNum 我的python脚本里面call了一个shell脚本,里面有这一行,执行的时候就会有标题这样的warning。原因查了一下,是说head执行完了就exit了,因此grep面对的是一个没有reader的pipe,就是broken pipe了。 不会有啥坏处,不管它也没事,或者把输出的warn ...
standalone 评论(0) 有4314人浏览 2009-08-12 15:32

shell中的$@和$*的区别

$@和$*在shell中都表示所有命令行参数,在没用双引号的时候,它们2个是差不多的,但是,加了双引号,结果就不同了   假设命令行参数 $1是hello $2是world   for i in "$*" do echo $i done 结果是 hello world   for i in "$@" do echo $i done 结 ...
vivimusing 评论(1) 有1684人浏览 2009-06-03 11:28

Linux 命令整理 —— 基本操作

使用Linux有一段时间了,整理一下常用的Linux命令 相关链接: Linux 命令整理 —— 基本操作 Linux 命令整理 —— 用户管理 1.ls 目录列举(dir) 一般我们这么写:ls 列举当前目录的所有文件,如果文件很多的话,这么看很复杂。我们可以加关键字,例如我们要看包含xml的全部文件。ls *xml*如果这个时候,我们想要看到这些文件的所有者信息可以这么写:ls -la ...
snowolf 评论(1) 有4701人浏览 2009-04-30 15:02

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客电子书下载排行

    >>浏览更多下载

    相关资讯

    相关讨论

    Global site tag (gtag.js) - Google Analytics