码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
记录bsh for scp 发布文件用法
for ip in 102 103 104 111 112 113 114 115 116 121 122; do sudo scp /etc/sudoers root@192.168.5.$ip:/etc/sudoers ;done
分类:其他好文   时间:2014-07-16 23:04:33    阅读次数:169
shell脚本解析8(练习2)-----文件个数统计
#!/bin/bashcounter=0#变量files遍历一遍当前文件夹for files in *do#判断files是否为文件,如果是,counter变量值加1,再赋值给自己。 if [-f"$files"] then counter=`expr $counter + 1` fido...
分类:其他好文   时间:2014-07-16 23:04:28    阅读次数:167
shell脚本解析9(练习3)------倒序输出
#!/bin/bash#提示用户输入echo -n "Please enter number"read n #读入输入的值放到变量n中sd=0rev=""on=$n #将变量n的值保存到变量on中,方便以后用到echo "You put number is $n"while [$n -gt 0]do...
分类:其他好文   时间:2014-07-16 23:03:53    阅读次数:261
块设备的读流程分析
关于VFS的通用读,我们不做考虑,本文以如下函数为根,往下分析:do_generic_mapping_read(*ppos,*mapping,*desc)本函数的目的是,从磁盘读数据到用户态,先是从*ppos开始的页,一直读到*ppos+desc->count 为止的,这么多个页,然后拷贝desc-...
分类:其他好文   时间:2014-07-16 21:53:13    阅读次数:326
2014 Super Training #7 C Diablo III --背包问题(DP)
原题: ZOJ 3769http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3769一个带有一些限制的背包问题。假设在没有限制的情况下,那么定义:dp[i][j]表示在前 i 类物品中,总的Toughness为 j 的时候最大的伤...
分类:其他好文   时间:2014-07-16 20:45:58    阅读次数:132
2014 Super Training #7 F Power of Fibonacci --数学+逆元+快速幂
原题:ZOJ 3774 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3774-------------------------------------------------------------------------...
分类:其他好文   时间:2014-07-16 20:45:49    阅读次数:137
Pascal 杨辉三角
用于打印杨辉三角的程序,有多种算法仅提供一种PRogram yh (input,ouput);var m,n,c:integer;BeginFor m:=0 TO 10 Do Begin c:=1; write(c:40-3*m); For n:=1 To m Do begin c:=c+(m-n+...
分类:其他好文   时间:2014-07-16 19:38:04    阅读次数:148
delete master error(git push origin :master)
All good so far. We next want to delete the branch on github. However, if we do this the naive way:git push origin :masterwe just get an error like th...
分类:其他好文   时间:2014-07-16 19:33:09    阅读次数:231
BT5下安装Metasploit4.5方法
BT5与Ubuntu下安装最新版Metasploit4.5方法:(先把老版本的MSF uninstall,BT5自带的老版本Metasploit没有办法升级!)1、下载Metasploit下的Linux安装包,拷贝至Ubunto的/opt目录。http://www.metasploit.com/do...
分类:Web程序   时间:2014-07-13 12:25:55    阅读次数:312
倒计时
second=10echo-en"\n****倒计时$second秒开始****\t\t"foriin$(seq$second-11)do#echo-ne"\033[s"#echo-ne"\033[1;31m$i\033[0m"#sleep1#echo-ne"\033[u"echo-ne"\033[1;31m\b\b\b$i\033[0m"sleep1done
分类:其他好文   时间:2014-07-10 18:39:01    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!