需要根据时间删除这个目录下的文件,/home/lifeccp/dicom/studies,清理掉20天之前的无效数据。 可以使用下面一条命令去完成: 这个是根据时间删除。 下面简要解释一下,这句shell命令: find /home/lifeccp/dicom/studies -mtime +21 ...
分类:
系统相关 时间:
2017-05-10 17:56:51
阅读次数:
310
curtime=$(date +%Y%m%d%H%M) for i in $@dofind ${bkwikiLocation} -mtime +21 -name "${i}_*" -type d -exec rm -rf {} \;if [ -d ${wikiLocation}${i} ]; the ...
分类:
系统相关 时间:
2017-05-08 21:00:57
阅读次数:
148
#_*_coding:utf-8_*_ __author__ = 'Alex Li' import time # print(time.clock()) #返回处理器时间,3.3开始已废弃 , 改成了time.process_time()测量处理器运算时间,不包括sleep时间,不稳定,mac上测不... ...
分类:
编程语言 时间:
2017-05-06 14:11:24
阅读次数:
133
Linux下find命令在文件夹结构中搜索文件,并运行指定的操作。Linux下find命令提供了相当多的查找条件,功能非常强大。由于find具有强大的功能,所以它的选项也非常多。当中大部分选项都值得我们花时间来了解一下。即使系统中含有网络文件系统( NFS)。find命令在该文件系统中相同有效,仅仅 ...
分类:
系统相关 时间:
2017-04-30 13:57:34
阅读次数:
171
1、通过buffer来实现 需要用file_put_contents ob_get_clean()等内置函数 ob_start (); include "filterpost.html"; $mtime = filemtime("./filterpost.html");//在这里可以判断文件是否存在 ...
分类:
Web程序 时间:
2017-04-29 21:10:22
阅读次数:
268
cd ls http://blog.csdn.net/ljianhui/article/details/11100625/ 1、cd命令 这是一个非常基本,也是大家经常需要使用的命令,它用于切换当前目录,它的参数是要切换到的目录的路径,可以是绝对路径,也可以是相对路径。如: [plain] view ...
分类:
系统相关 时间:
2017-04-29 17:35:58
阅读次数:
189
#!/usr/bin/env python# -*- coding: utf-8 -*-"""__title__ = ''__author__ = 'wlc'__mtime__ = '2017/3/13'"""print("hello world!")import keywordprint(keyw ...
分类:
编程语言 时间:
2017-04-23 20:11:23
阅读次数:
152
多了不再赘述,看以下解释 st_atime Time when file data was last accessed. Changed by the following functions: creat(), mknod(), pipe(), utime(2), and read(2). st_m ...
分类:
系统相关 时间:
2017-04-23 17:56:28
阅读次数:
261
find:高级查找文件、文件夹 格式: find 查找位置 查找参数 常用: 1、通过名字进行查找 # find / -name ifcfg-eth0 查找根分区下文件名为ifcfg-eth0的文件 2、通过文件权限来查找 [root@life ~]# find ~ -perm 644 查找当前目录 ...
分类:
系统相关 时间:
2017-04-23 01:10:58
阅读次数:
191
一. 自设DateTimePicker的时间 CString mTime; mTime="2005-5-25 12:25:32"; //自设时间 //在界面上有两DataTimePicker控件 CTime m_Date;//短日期:IDC_DATETIMEPICKER1 CTime m_Time; ...
分类:
其他好文 时间:
2017-04-15 21:58:32
阅读次数:
170