Location:
Search - mtime
Search list
Description: 仿照unix操作系统中的find命令,在windows上实现一个find命令。find命令从指定的目录下开始,递归地查找指定文件。其命令格式如下:
find PATH -option 参数 [-print] [-exec 命令 {} \ ]
PATH:查找的起始目录。
-option 参数:用来控制搜索方式,具体如下(以下只给我常用的):
-name "文件":指定要查找的文件名,可以有通配符?*等。
-prune 目录:指出搜索时不搜索该目录。
-mtime +n或-n:按时间搜索,+n:表示n天之前修改过的文件;-n:表示今天到n天前之间修改过的文件。
-ctime +n或-n:也是按时间查找,+n:表示n天之前创建的文件;-n:表示今天到n天前之间创建的文件。
-mulstream:如果是多流的文件,查找流的名字
-print:将搜索结果输出到标准输出。
提示:有关多流文件的介绍,请看文档。其他相关的API请查看MSDN.
可选的实验1:实现-exe选项。
-exec:对查找到的每一个结果实行指定的程序。格式如下:
-exec 程序名
提示:执行指定的程序可以创建一个进程执行
可选的实验:
将你实现的find命令改为用多线程的方式实现。比较多线程实现的find与单线程实现的find的执行结果、效率等-err
Platform: |
Size: 53248 |
Author: luqianhui |
Hits:
Description: 基于分布式并行计算的机器间时间协调的代码~~有一定的参考价值-Based on distributed parallel computing machine coordination between the time code ~ ~ have a certain reference value
Platform: |
Size: 6144 |
Author: 呵呵 |
Hits:
Description: 建立自己的电影数据库用,可以直接从www.mtime.com获取电影资料。-Set up its own database with movies, you can access directly from the movie www.mtime.com information.
Platform: |
Size: 4096 |
Author: mycc |
Hits:
Description: 修改计算机时间
功能的需要,自己在开发软件中经常会遇到客户的机器被病毒或CMOS没电,而时间不准备,这就需要从服务器读取时间来修改计算机时间。-Modify the function of computer time necessary to develop their own software often encounter clients machines have been a virus or CMOS without electricity, and time is not prepared, and this requires the time to read from the server to modify the computer time.
Platform: |
Size: 25600 |
Author: 依星 |
Hits:
Description: LIUX作业FROM BUPT
1.find /tmp –user tom –mtime +60 | xargs rm -rfv
2.cat sample.txt | tr A-Z a-z |tr –cs a-z\’ ‘\n’ | sort | uniq –c | sort –nr | head -10-LIUX job FROM BUPT
1.find/tmp-user tom-mtime+60 | xargs rm-rfv
2.cat sample.txt | tr AZ az | tr-cs az \ ' ' \ n ' | sort | uniq-c | sort- nr | head-10
Platform: |
Size: 102400 |
Author: 冯加美 |
Hits:
Description: LIUX作业FROM BUPT
1.find /tmp –user tom –mtime +60 | xargs rm -rfv
2.cat sample.txt | tr A-Z a-z |tr –cs a-z\’ ‘\n’ | sort | uniq –c | sort –nr | head -10
6.adduser sambausr1
passwd sambausr1
adduser sambausr2
passwd sambausr2
addgroup sambausrs
usermod –g sambausrs sambausr1
usermod –g sambausrs sambausr2
-LIUX job FROM BUPT
1.find/tmp-user tom-mtime+60 | xargs rm-rfv
2.cat sample.txt | tr AZ az | tr-cs az \ ' ' \ n ' | sort | uniq-c | sort- nr | head-10
adduser sambausr1
passwd sambausr1
adduser sambausr2
passwd sambausr2
addgroup sambausrs
usermod –g sambausrs sambausr1
usermod –g sambausrs sambausr2
Platform: |
Size: 102400 |
Author: 冯加美 |
Hits:
Description: 9base
9base is a port of various original Plan 9 tools for Unix, based on plan9port.
It currently contains the following original (no source changes) shell commands from Plan 9 for Unix:
ascii
awk
basename
bc
cal
cat
cleanname
cmp
date
dc
du
dd
diff
echo
ed
factor
fortune
fmt
freq
getflags
grep
hoc
join
look
ls
mk
mkdir
mtime
pbd
primes
rc
read
sam
sha1sum
sed
seq
sleep
sort
split
strings
tail
tee
test
touch
tr
troff
unicode
uniq
unutf
It also contains the Plan 9 libc, libbio, libregexp, libfmt and libutf. The overall SLOC is about 66kSLOC, so this userland + all libs is much smaller than, e.g. bash
Platform: |
Size: 1045504 |
Author: uantefenm |
Hits:
Description: java+jsp+oracle 仿时光网的在线电影评论网站-java+ jsp+ oracle imitation time network online movie review site.
Platform: |
Size: 6183936 |
Author: 刘鹏 |
Hits: