ChinaUnix.net
相关文章推荐:

C 统计一个目录下的文件数

[code]$userDir = "$c:/users"; chdir($userDir); while (<*.txt>){ my $filename = $_; $count = 0; open(ORIGINALORDERFILE, $_); @file=; $count = @file; open (SUMMARY,">>c:/summary.txt"); print SUMMARY "$filename "; print SUMMARY "This file total is $count rows\n"; print SUMM...

by shijiang1130 - Perl - 2009-01-06 17:11:39 阅读(1872) 回复(3)

相关讨论

$ls -R|grep '^\.\/.*\/.*\/2' ... ./Alarms/2008122908: ./Alarms/2008122909: ./Alarms/2008122910: ... ./Messages/2008122908: ./Messages/2008122909: ./Messages/2008122910: ... ... .user1/Alarms/2008122908: .user1/Alarms/2008122909: .user1/Alarms/2008122910: ... .user1/Messages/2008122908: .user1/Messages/2008122909: .user1/Messages/2008122910: ... .user2/Alarms/2008122908: .user2/Alarms/2008122909: ....

by cliff1235 - Shell - 2008-12-30 12:35:17 阅读(2482) 回复(18)

#!/usr/bin/perl $dir=0; if (!(-d "$dir")){mkdir "$dir";} for ($i=0;$i<=6666666;$i++) { open F,">>$dir/$i"; close F; } 随着文件的数目增加,cpu的占用率越来越高。怎么办。 系统是FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 # sysctl -a | grep mem memdesc 1 4K - 1 4096 vm.kmem_size: 3...

by chenyan1206 - Perl - 2007-06-10 22:38:25 阅读(1727) 回复(0)
by menxs - 待验证会员发帖专区 - 2005-12-07 10:29:32 阅读(930) 回复(0)

如题,求救,系统从Windows迁移至HP_UX,原Windows下逻辑盘里有12万文件,能直接移到HP_UX 11i 系统上的目录里吗? 如不能,有什么办法吗? 请大侠指点,谢谢!

by BigBear - HP-UX - 2004-11-04 14:40:53 阅读(2975) 回复(1)
by shitian8848 - Linux论坛 - 2004-11-03 10:55:51 阅读(3750) 回复(15)

统计目录下所有文件的行数的最简单方法???

by CPU2 - Shell - 2007-05-03 20:20:45 阅读(6156) 回复(17)

如何统计目录下有多少文件?

by wpl12 - 系统管理 - 2006-11-16 08:57:16 阅读(1182) 回复(6)

如何统计目录下有多少文件?

by wpl12 - Linux系统管理 - 2006-11-16 08:57:16 阅读(5578) 回复(6)

[code] #!/bin/sh ## filename: dfdir.sh ## script for getting file list of specified directory, ## then output them in order by size. ## Powered by Muddyboot, last modified: 2005-04-26 usage(){ echo -e "\nUsage: `basename $0` DIRECTORY [MIN_SIZE]\n" echo "Get file list of DIRECTORY, then output them in order by size." echo "If MIN-SIZE is specified, only print those greater than MIN-S...

by coolend - Shell - 2005-04-26 12:40:52 阅读(1949) 回复(2)

请教各位,我想知道目录下共有多少文件. 用哪命令啊?

by iheaing - BSD - 2005-03-30 18:38:25 阅读(1108) 回复(6)