linux定时任务的设置- crontab
http://www.blogjava.net/freeman1984/archive/2010/09/23/332715.html
每5分钟执行一次:vi /etc/crontab
*/5 * * * * tomcat cd /home/tomcat/rxjh/scripts/ && ./report.sh
-----------------------------------
linux shell脚本中生成随机数的方法
http://www.cnblogs.com/chengmo/archive/2010/10/23/1858879.html
head
-200
/dev/urandom
| cksum |
cut
-f1 -d
" " 我选择了这个。
--------------------------
linux date命令-时间显示相关
http://www.cnblogs.com/peida/archive/2012/12/13/2815687.html
注:这个地方的使用的时候还出现了一些小问题:
shell 提示 ambiguous redirect
http://www.ldisp.com/a/primary/2014/2642.shtml
http://stackoverflow.com/questions/2462385/getting-an-ambiguous-redirect-error
造成这个问题的原因很可能是变量没有加"" 或者{}
后来的解决方案,"${var}" 都改成这样就好了。
------------------
mkdir 创建目录树的方法
http://www.cnblogs.com/peida/archive/2012/10/25/2738271.html
-----------------------------
vi 删除文件中的所有内容
vi 删除全文操作
G 转到文件结尾
:1,.d 删除所有内容