码迷,mamicode.com
首页 >  
搜索关键字:done    ( 2584个结果
shell之for、while循环
一、for循环[root@wwwshell]#catfor.sh#!/bin/bashforiin`seq110`;do echo"$i" done通过这个脚本就可以看到for循环的基本结构:for变量名in循环的条件;do command done[root@wwwshell]#shfor.sh12345678910例2:[root@wwwshell]#catfor2.sh#!/bin/bashforain`ls`;do echo"$a"do..
分类:系统相关   时间:2014-11-04 09:27:51    阅读次数:231
Erlang 102 Erlang并发编程 - should be done in 2014-11-09
Erlang MPI并发编程概念
分类:其他好文   时间:2014-11-03 01:14:13    阅读次数:241
Python 2.x and 3.x string difference
In Python 3 unicode strings are the 'regular strings' (str) and byte strings are separate objects.Low level I/O can be done only with data (byte strin...
分类:编程语言   时间:2014-10-30 18:43:56    阅读次数:219
RabbitMQ基本管理(下)
为了能够登陆RabbitMQ,必须创建RabbitMQ用户账号。 # rabbitmqctl add_user elite elite123 Creating user "elite" ... ...done. # sudo rabbitmqctl set_user_tags elite  administrator Setting tags for user "elite" to [a...
分类:其他好文   时间:2014-10-29 10:59:10    阅读次数:197
Shell 编程基础之 Select 练习
一、语法select 变量 in con1 con2 con3 # 自动列出 con1,con2,con3 的选择菜单do #执行内容break # select本身就是一个循环,break是当选择后,就跳出循环done二、练习select + case 模拟 Linux 启动脚本...
分类:系统相关   时间:2014-10-28 19:51:19    阅读次数:234
Shell 编程基础之 While 练习
一、语法while [ condition ] # 当 condition 条件成立时,就进行循环,直到条件不成立停止do #执行内容done二、练习输入用户输入的参数,直到用户输入 "end" 结束循环whileread -p "Plz input a paramter": paramte...
分类:系统相关   时间:2014-10-28 17:31:49    阅读次数:198
Shell 编程基础之 For 练习
一、语法for var in con1 con2 con3 ...do # 执行内容donefor var in {min..max}do # 执行内容donefor (( 初始值; 限制值; 步阶 ))do # 执行内容done二、练习输出 Shell 的运行时的输入参数echo...
分类:系统相关   时间:2014-10-28 17:08:12    阅读次数:254
Shell 编程基础之 Until 练习
一、语法until [ condition ] # 和while相反,当 condition 条件成立时,就终止回圈, 否则就持续进行回圈的程序段do #执行内容done二、练习输入用户输入的参数,直到用户输入 "end" 结束循环untilread -p "Plz input a para...
分类:系统相关   时间:2014-10-28 16:58:05    阅读次数:237
Go中的系统Signal处理
package mainimport "fmt"import "os"import "os/signal"import "syscall"func main() { go SignalProc() done := make(chan bool, 1) for { select { case <-.....
分类:其他好文   时间:2014-10-27 19:27:09    阅读次数:139
Cocos2d-x 学习笔记1 - ActionManager
// Example 1// Move from center of the screen by [150, 0], and then scale by 2 when moving is done // The difference between MoveTo & MoveBy is the ab...
分类:其他好文   时间:2014-10-26 19:43:14    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!