for循环 1. 注意do必须换行 for?i?in?{1..10}?
do
???echo?$i
done 2.?注意do必须换行 for?i?in?1?2?3?4?5?
do
????echo?$i
done 3. 遍历命令输出的结果 for?shname?in?`ls?*.sh`
do?...
分类:
系统相关 时间:
2015-03-02 22:37:57
阅读次数:
216
背景:
某日数据上报任务中,出现:“HTTP request sent, awaiting response... 404 Not Found”异常。
日志如下:
任务ID:xxx开始执行,执行命令:edw/etl/xx.py 125_yyyymmdd_done.txt wireless_order_deal_5min
--2015-02-27 08:56:09-- http://...
分类:
Web程序 时间:
2015-03-02 11:19:32
阅读次数:
1468
在2014年的开头就有这样一个令人振奋的好消息,Erlang有一本新书即将出版《The Erlang Runtime System》,其作者happi在2013年3月份发布了这本书的写作计划:"The plan is to have the book done by the end of 2013 ...
分类:
其他好文 时间:
2015-03-01 11:49:54
阅读次数:
190
1. 什么是ShaderAll rendering in Unity is done withShaders- small scripts that let you configure the how the graphics hardware is set up for rendering.Sha...
分类:
编程语言 时间:
2015-03-01 00:17:45
阅读次数:
255
错误
02-28 20:14:13.904 18116-18116/? E/AdFireWallNative﹕ AdFrieWall JNI_OnLoad
02-28 20:14:13.904 18116-18116/? E/AdFireWallNative﹕ AdFireWall JNI_OnLoad done.
02-28 20:14:13.555 743-1064/? E/...
分类:
移动开发 时间:
2015-02-28 21:40:35
阅读次数:
217
先看一段代码host="master slave1 slave2 slave3 slave4 slave5"for i in $hostdo ssh $i "echo $HOSTNAME'done这是在master上执行的,最后打印出来全是master;这显然不是本意;查了之后,说是当用双引号时,....
分类:
系统相关 时间:
2015-02-28 18:09:39
阅读次数:
154
命令如下 :for i in `cd /proc;ls |grep "^[0-9]"|awk ' $0 >100'` ;do awk '/Swap:/{a=a+$2}END{print '"$i"',a/1024"M"}' /proc/$i/smaps ;done |sort -k2nr
分类:
其他好文 时间:
2015-02-28 16:00:42
阅读次数:
99
今天我们来实现新增数据的功能。在新增餐馆的控制器中初始化一个类:
var restaurant = Restaurant()
接着创建关联,按住control键选择done按钮拖拽到控制器代码中:
会自动生成如下代码:
@IBOutlet weak var doneButton: UIBarButtonItem!
同理把文本框也拖过去。回到控制器中有一个方法已经为我们准备好了,...
分类:
编程语言 时间:
2015-02-26 13:28:29
阅读次数:
201
1. 复制整个listCopying and incrementing/decrementing the copy is the only way it can be done.You can write wrapper functions to hide it (and as mentioned ...
分类:
其他好文 时间:
2015-02-26 01:22:18
阅读次数:
178
几个基本快捷键转换关键字用来将一个文本转换成TODO, DONE 或者转换回来应该用Shift + 左/右键scheduled & dead line timeC-c C-s & C-c C-d这时会打开日历,用Shift + 左/右键移动日期Agenda 命令M-x org-agenda时间线展示日程L 命令这个特别有用, 能一下在按照日期把所有做的事情排列,由于颜色的区分,一下子就能看到哪天...
分类:
系统相关 时间:
2015-02-23 23:44:55
阅读次数:
535