![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
blackproof
这个作者很懒,什么都没留下…
展开
-
shell并发
#!/bin/bash for(( i = 0; i < ${count}; i++ )) do { commands1 }& done wait commands2 [plain] view plaincopy #!bin/bash ...原创 2014-12-09 11:41:59 · 63 阅读 · 0 评论 -
shell date
day ago 2014-08-27' +%Y-%m-%d 求20140827前一天 date -d '1 day $_myday' +%Y-%m-%d 求_myday的后一天 说明 : date 可以用来显示或设定系统的日期与时间,在显示方面,使用者可以设定欲显示的格式,格式设定为一个加号后接数个标记,其中可用的标记列表如下 : 时间方面 : % : 印出 % %n : 下一行 %t : 跳格 %H : 小时(00..23) %I : 小时(01..12) %k原创 2014-08-20 20:52:35 · 73 阅读 · 0 评论 -
shell syntax error: unexpected end of file
原创 2014-09-12 17:10:48 · 89 阅读 · 0 评论 -
shell并发
ew plaincopy #!bin/bash PRONUM=10 #进程个数 tmpfile="$$.fifo" #临时生成管道文件 mkfifo $tmpfile exec 6<>$tmpfile rm $tmpfile for(( i=0; i<$PRONUM; i++ )) do ech原创 2014-12-09 11:41:59 · 116 阅读 · 0 评论