#!/bin/bash #判断命令行是否代带有两个文件名的参数 if [ "$1" = "" ] || [ "$2" = "" ] then echo "Please enter file name" exit 1 fi #判断目标文件是否存在 if [ -e $2 ] then echo "...
分类:
其他好文 时间:
2014-07-16 22:59:29
阅读次数:
153
1、远程查询进程: tasklist [/S system [/U username [/P [password]]]] [/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH] 如:tasklist /S domain /U d...
原文地址:https://hsivonen.fi/doctype/In order to deal both with content written according to Web standards and with content written according to legacy pr...
分类:
其他好文 时间:
2014-07-08 21:51:26
阅读次数:
539
extundeleteext3/ext4文件系统上找回被删除的文件或者文件夹的工具选项:--afterdtimeOnlyprocessentriesdeletedonorafter‘dtime‘.--beforedtimeOnlyprocessentriesdeletedbefore‘dtime‘.以s为单位--restore-inodeino根据指定节点恢复,通过ls-i来查看文件的节点号--restore-fi..
分类:
其他好文 时间:
2014-07-08 12:07:49
阅读次数:
224
单分支if语句if判断条件;then
statement1
statement2
fi双分支if语句if判断条件;then
statement1
statement2
……
else
statement3
statement4
……
fi多分支if语句if判断条件1;then
statement1
statement2
……
elif判断条件2;then
statement3
statement4
……
elif判断条件3;..
分类:
其他好文 时间:
2014-07-08 08:30:58
阅读次数:
166
序:最近想玩 旋律提取,扒带等算法,在网上辗转查了好几年,发现一些成熟的应用软件有WIDI,还有一些是属于音频工作站软件的插件(这类就少接触了)。开源的算法发现得不多,但是芬兰 于韦斯屈莱大学 (http://www.jyu.fi)的音乐信息检索(Music Information Retrieva...
分类:
其他好文 时间:
2014-07-03 11:56:14
阅读次数:
1511
快速的ping网络中存活的主机,该脚本有并行执行的特点,能够在后台快速完成网络主机的检查。#!/bin/bash
#
#
foripin192.168.1.{1..255};
do
(
ping$ip-c2&>/dev/null;
if[$?-eq0];
then
echo$ipisalived
fi
)&
done
wait如果要出事255个地址,ping每一个IP的主机都..
分类:
其他好文 时间:
2014-07-02 15:59:11
阅读次数:
286
1 #include 2 3 LRESULT CALLBACK MyWndProc( HWND hwnd, // handle to window 4 UINT uMsg, // message identifier 5 WPARAM wParam, // fi...
html:<inputid="Fi_Fp"runat="server"name="Fi_Fp"type="file"/>.cs:usingSystem.IO;usingSystem.Text.RegularExpressions;usingSystem.Windows.Forms;if(Fi_Fp.PostedFile.ContentLength>0)//上传了新图书{b._upfile=uploadFile(Fi_Fp);if(isTxt==true){b._txtlist=r..
分类:
其他好文 时间:
2014-07-02 06:47:27
阅读次数:
204
现在常常能看到一些网站(如:新浪微博和花瓣)导航条或工具栏固定在网页的顶部或其他地方。这样的布局方式,能便于用户点击和“曝光率”,不用每次都要把网页拖动到某个特定位置才能点击或看到。其实这样的布局方式很早就有,只是没有那么个契机推广开吧。做起来也不复杂,只要设置一个小小的属性“position:fi...
分类:
Web程序 时间:
2014-07-01 23:02:27
阅读次数:
273