1 #!/bin/bash 2 #查询 3 echo -e 4 for i in `cat
id.txt` 5 do 6 A=`mysql -h10 -uw -p2012 -Ne "select Id,Name,User_Logindate from
info where Id=$i"`...
分类:
数据库 时间:
2014-05-27 18:08:04
阅读次数:
341
#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
用管理员身份运行CMD> cd C:\Program
Files\mongodb\bin> C:\Program Files\mongodb\bin>mongod --dbpath
"C:\Program Files\mongodb\data\db" --logpath "C:\Program Fi...
分类:
数据库 时间:
2014-05-27 16:12:25
阅读次数:
337
http://www.wwwer.net/archives/proxmark3-introduced.htmlProxmark3固件介绍Proxmark3是一个开源的安全设备,故此其内置的固件也是因开源而不断的进行升级以及修改,而我们团购回来的版本是较为稳定的r486,因为每次编译固件生成bin的时...
分类:
其他好文 时间:
2014-05-27 15:58:34
阅读次数:
1258
#!/bin/bash# 用shell中的数组构造统计不同的组合个数.#
下面的组合有(1,6)(3,4)(5,5)(1,6)(5,5)(4,3)(1,8)#
不同的组合为(1,6)(3,4)(5,5)(4,3)(1,8)arrayLeft=(1 3 5 1 5 4 1)arrayRight=(6 ...
分类:
其他好文 时间:
2014-05-26 19:17:19
阅读次数:
409
这篇文章主要介绍Shell脚本编写俄罗斯方块的方法,原文来自脚本之家,http://www.jb51.net/article/48926.htm效果图:代码:#!/bin/bash#
Tetris Game# 10.21.2003 xhchen#APP declarationAPP_NAME="${...
分类:
其他好文 时间:
2014-05-25 22:25:03
阅读次数:
352
1. 变量赋值时 = 两边不能有空格.2. if比较时 = 两遍有空格.3. [ 的左右两边 和 ]
的左边有空格, 1 #!/bin/sh 2 # 字符串比较 3 aa= 4 bb="hello" 5 cc="world" 6 7 #
1.注意判断中的字符串变量用双引号括起来(不括起来在某些情况....
分类:
其他好文 时间:
2014-05-25 22:01:11
阅读次数:
298
ubuntu下/bin/sh的指向
ubuntu 下 /bin/sh 默认是dash,用ll /bin/sh就可以看出来sh是指向dash的链接,有时候会导致使用bash脚本的时候出问题。
如果遇到这个问题了,就要把sh指向bash。
用下面的命令把dash修改为bash
用sudo dpkg-reconfigure dash 选择否
查看当前的she...
分类:
其他好文 时间:
2014-05-25 21:31:45
阅读次数:
224
cd /d F:\wamp\bin\apache\Apache2.2.21\binhttpd.exe
-k install -n "noodle" -f "F:\wamp\bin\apache\Apache2.2.21\conf\httpd2.conf"★
control -> server -> ...
分类:
Web程序 时间:
2014-05-25 20:41:54
阅读次数:
244
这一篇在上一篇使用aforg.net 捕获摄像头的基础上稍加修改
增加录制功能录制功能使用AForge.Video.FFMPEG 需要添加对 AForge.Video.FFMPEG.dll的引用
并且拷贝AForge.NET\Framework\Externals\ffmpeg\bin路径下的全部d...
分类:
Web程序 时间:
2014-05-25 20:37:31
阅读次数:
393