#批量修改当前目录下的文件扩展名,将.doc改为.txt1.[root@svr5rendir]#vim../renfilex.sh2.#!/bin/bash3.forFILEin"$1"4.do5.mv$FILE${FILE%$1}"$2"6.done++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++编写sumx.sh脚本,从键盘读入一个正整数x..
分类:
系统相关 时间:
2016-04-13 20:59:32
阅读次数:
224
#!/bin/bash
#DeleteUsers
forusersinadmlpsyncshutdownhaltnewsuucpoperatorgamesgopher;
do
userdel$users
done
#DeleteGroups
forgroupsinadmlpnewsuucpgamesdippppuserspopusersslipusers;
do
groupdel$groups
done
#DisableServices
forservicesinanacronauditdautofsav..
分类:
其他好文 时间:
2016-04-11 07:38:03
阅读次数:
155
Baby you've done enough that cut your breath.Don't beat yourself up don't need to turn so fast.Sometimes we come last but we did our best. 你已经受够了白费力气, ...
分类:
其他好文 时间:
2016-04-09 16:49:09
阅读次数:
137
总算搞定了这一场比赛的题目,感觉收获蛮大 其中A,B,C都能通过自己的思考解决掉 D题思路好神,E题仔细想想也能想出来 以后坚持每两天或者一天做一场CF的div1的全套题目 除非有实在无法做出来的题目,每道题目还是都要写题解的 (我这算不算立flag? 本蒟蒻写的题解的链接: A:http://ww ...
分类:
其他好文 时间:
2016-04-04 22:41:44
阅读次数:
165
问题1:同时读取两个文件的相同行,并将两个文件的行插入到同一文本#cataa
a1
a2
a3
a4
#catbb
b1
b2
b3/
#vimaa.sh
#!/bin/bash
whileread-u3i&&read-u4j;
do
echo$i$j
done>cc3<aa4<bb
#./aa.sh
#catcc
a1b1
a2b2
a3b3/注意
read-u3i代表从文件描述符3中读..
分类:
系统相关 时间:
2016-04-01 06:45:03
阅读次数:
235
john有个参数可以设置破解时间,比如破解5秒则设置:--max-run-time=5,可以利用这个参数批量破解 for i in *;do (echo $i>>out;john --max-run-time=5 $i >>out;echo>>out);done for i in *;do (ech ...
分类:
其他好文 时间:
2016-03-30 09:52:29
阅读次数:
218
Bengio, LeCun, Jordan, Hinton, Schmidhuber, Ng, de Freitas and OpenAI have done reddit AMA's. These are nice places to start to get a Zeitgeist of the ...
分类:
其他好文 时间:
2016-03-28 13:33:02
阅读次数:
175
#!/bin/bash
##自动创建用户并创建密码
groupaddstduent
foriin`seq-w010`
do
useradd-Gstduentstduent$i-s/sbin/nologin
echo"stduent$i|passwdstduent$i--stdin"
done#!/bin/bash
###自动删除用户名和家目录
groupdeluser
foriin`seq-w020`;do
userdel-ruser_$i
doneseq-w#数..
分类:
其他好文 时间:
2016-03-28 07:12:52
阅读次数:
180
SVN 源码地址:http://code.taobao.org/svn/keshihua-echarts/ 1.1、如何声明 1.2、加载JS中的图表模板option 1.2、加载后台JSON数据,本方法采用done异步模式 1.3、后台JSON格式请参照 x1/saledata-columnarr ...
分类:
其他好文 时间:
2016-03-26 21:54:58
阅读次数:
216