10 2013 档案

摘要:语法:split [-l ][-b ] [-C ] [要切割的目标文件] [输出文件名前缀]说明:-l 指定每多少行就要切成一个小文件,默认值是1000行。-b 指定每多少字节就要切成一个小文件。-b n k == n * 1024 bytes-b n m == n * 1024 * 1024 bytes-C 与-b参数类似,但切割时尽量维持每行的完整性。[输出文件名] 设置切割后文件的前置文件名,split会自动在前置文件名后再加上编号。例子:1 split -l 30000 myfile.txt newfile ####将myfile.txt以每30,000为单位进行分割... 阅读全文
posted @ 2013-10-24 21:50 zhenxu.liu 阅读(507) 评论(0) 推荐(0) 编辑
摘要:There are some short expressions in Perl that allow you to test files, which is handy if you want to check what a file allows before using it, or if it exists at all. We'll look at a few of the common tests in this section.ExistenceTo see if a file exists before using it, we can use:if (-e " 阅读全文
posted @ 2013-10-23 07:29 zhenxu.liu 阅读(419) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示