码迷,mamicode.com
首页 >  
搜索关键字:done    ( 2584个结果
amazon 面经 5
http://www.geeksforgeeks.org/amazon-interview-set-105-campus/First PI:1. A brief discussion on my projects that I have done .2. One thing that I am mo...
分类:其他好文   时间:2014-08-10 15:35:10    阅读次数:302
$*和$@之间区别代码分析
#!/bin/bash set 'apple pie' pears peaches for i in $*           /*单引号被去掉,循环单个字符输出*/ do echo $i done [root@luozhonghua Ex_14.02-14.31]# sh 14-14-1 apple pie pears peaches ------------------...
分类:其他好文   时间:2014-08-09 23:22:59    阅读次数:393
linux shell 实现多进程
作为linux系统运维或者linux下的数据库DBA,很多时候需要写一些脚本来帮组我们实现某些需求,如果脚本内的某些内容能够试下并行处理,将大大提高工作的速度。不多说,上脚本先举一个顺序执行的例子:[root@xxtest]#cattest.sh#!/bin/bashforiin{1..5};dosleep1;echo"hello"done..
分类:系统相关   时间:2014-08-08 16:22:36    阅读次数:250
程序员,请记住这7句话
Keep Your Code Clean;Don’t Repeat Yourself;Done is Better than Perfect;沟通、简单、灵活;拥抱变化,持续交付;小步前进,持续改善;专业赢得尊重
分类:其他好文   时间:2014-08-06 18:53:12    阅读次数:206
These Bags Also Require A Certain Level Of Formality Being
Hermes creates miracles amazing world of w?tków.Firm Hermes is built on the strength of a stitch that can only be done manually. Individuals trained p...
分类:其他好文   时间:2014-08-05 13:38:09    阅读次数:297
批量登陆linux主机脚本
#test.sh #!/bin/bash dir=/home/test whilereadline do host=`echo$line|awk‘{print$1}‘` passwd=`echo$line|awk‘{print$2}‘` $dir/expect_ssh.sh$host$passwd& done<$dir/host.txt #expect_ssh.sh #!/usr/bin/envexpect setHOST[lindex$argv0] setPASSWD[lindex$argv..
分类:系统相关   时间:2014-08-05 11:33:10    阅读次数:243
A trip through the Graphics Pipeline 2011_05
After the last post about texture samplers, we’re now back in the 3D frontend. We’re done with vertex shading, so now we can start actually renderi...
分类:其他好文   时间:2014-08-05 00:35:18    阅读次数:306
打印1-100以内的素数
LinuxBash/Shell:[root@memshell]#catprime.sh #!/bin/sh #Printprimefrom1to100 for((i=1;i<=100;i++)) do if[$i-eq1];then continue fi flag=0 for((j=2;j<i;j++)) do a=$[$i%$j] if[$a-eq0];then flag=1 fi done if[$flag-eq0];then echo$iispri..
分类:其他好文   时间:2014-08-04 14:42:08    阅读次数:257
Bash编程语法结构第二节
Bash编程语法结构一、for结构其中$var是循环控制变量,[list]是$var需要遍历的一个集合,do/done对包含了循环体,相当于C语言中的一对大括号。另外如果do和for被写在同一行,必须在do前面加上";"。如:for$varin[list];do。下面是一个运用for进行循环的例子:二、while适用于循..
分类:其他好文   时间:2014-08-03 15:27:16    阅读次数:303
关于Linux中循环语句for,while,until用法的详解
关于Linux中循环语句for,while,until用法的详解for,while,until这些循环结构体在Linux的script中是使用非常多的,所以掌握他们的用法是很必要的,以下是我整理的关于这三个命令的一些用法,希望对需要的人有帮助。一、for循环结构一:for变量in列表;do循环体done结构二:for..
分类:系统相关   时间:2014-08-03 08:03:35    阅读次数:506
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!