用lua遍历文件目录,收集特定类型的文件: 1 local LINUX = "linux" 2 local WIN = "win" 3 local platform = WIN 4 5 local need_the_filetype = function(tfiletype, filename) ....
分类:
其他好文 时间:
2014-08-23 19:02:01
阅读次数:
630
linux 查看日志
1、cat命令:
功能:1)显示整个文件。
示例: $ cat fileName
2)把文件串连接后传到基本输出,如将几个文件合并为一个文件或输出到屏幕。
示例: $ cat file1 file2 > file
说明:把档案串连接后传到基本输出(屏幕或加 > fileName 到另一个档案)
cat参数详解:
-n 或 –numb...
分类:
系统相关 时间:
2014-08-23 15:26:01
阅读次数:
256
@SuppressWarnings("resource")public void download() throws Exception{ String filename = "qrcode.png"; String content = "content"; BufferedIma...
分类:
其他好文 时间:
2014-08-23 15:19:40
阅读次数:
218
Linux下自带了一个unzip的程序可以解压缩文件, 解压命令是:unzip filename.zip 同样也提供了一个zip程序压缩zip文件,命令是 zip filename.zip files 会将files压缩到filename.zip 另外看看你的文件的后缀名,不同的后缀...
分类:
系统相关 时间:
2014-08-23 15:13:30
阅读次数:
255
more 命令有三种用法:
1.more filename
2.command | more
3.more
本例中在使用时要用./more执行
more.c
#include
#include
#include
#define LINE_LENGTH 512
#define PAGE_LENGTH 24
int see_more(FILE* fp_cmd)
{...
分类:
系统相关 时间:
2014-08-22 17:55:59
阅读次数:
306
本地文件在commit到仓库之前若没有chmod +x 权限的话,那在svn仓库里的文件将会保持当前无可执行属性状态。 即使在本地chmod +x filename 之后,再提交到仓库也是没有用的。check out到其他目录的时候,文件仍然没...
分类:
其他好文 时间:
2014-08-22 13:09:49
阅读次数:
279
popen()函数 1 /*============================================ 2 > Copyright (C) 2014 All rights reserved. 3 > FileName:my_ponen.c 4 > author:donald 5 > d...
分类:
其他好文 时间:
2014-08-22 02:46:25
阅读次数:
174
pipe()函数在子进程产生之前就应该存在。父子进程之间只进行一次传递 1 /*============================================ 2 > Copyright (C) 2014 All rights reserved. 3 > FileName:onep...
分类:
其他好文 时间:
2014-08-22 02:46:15
阅读次数:
293
参考:http://stackoverflow.com/questions/14141008/grep-offset-of-ascii-string-from-binary-filestrings -a -t x filename | grep foobar
分类:
系统相关 时间:
2014-08-21 18:49:54
阅读次数:
212
第一步:struts.xml的配置
application/octet-stream;charset=ISO8859-1
指定被下载文件名
-->
attachment;filename="${fileName}"
downloadFile...
分类:
其他好文 时间:
2014-08-21 17:14:14
阅读次数:
207