skip to main
|
skip to sidebar
[jojo mclntosh:Blogger];
Simplicity is something of infinite beauty~~!
Tuesday, March 4, 2008
linux统计目录下文件个数的命令组合
使用ls -l列出文件和目录,如果还需要子目录中的话就ls -lR
然后用grep "^-"过滤以-开头的行(即普通文件)
最后用wc -l统计过滤出来的行数。
即$ls -l | grep "^-" | wc -l
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Labels
linux
(13)
同步opera blog(http://my.opera.com/jojomclntosh)
(9)
随手记
(8)
gentoo
(4)
FreeBSD
(3)
java
(3)
JEE
(2)
OpenWRT
(2)
apple
(2)
dd-wrt
(2)
oracle
(2)
psp
(2)
spring
(2)
tomato
(2)
wifi
(2)
wii
(2)
wl-500gp v2
(2)
转贴
(2)
3Ds
(1)
AGP 2x
(1)
JForum
(1)
MTD,swap
(1)
Mac OS
(1)
ODBC
(1)
PowerMac G4 400
(1)
RHEL
(1)
Ruby
(1)
ibook
(1)
ireport
(1)
jasperreport
(1)
locale
(1)
mac
(1)
miniBSD
(1)
polo
(1)
ramdisk
(1)
swap
(1)
tmpfs
(1)
vnc
(1)
同步opera
(1)
Blog Archive
►
2009
(1)
►
Sep
(1)
▼
2008
(25)
►
Dec
(2)
►
Sep
(5)
►
Aug
(1)
►
Jun
(2)
►
Apr
(4)
▼
Mar
(1)
linux统计目录下文件个数的命令组合
►
Feb
(3)
►
Jan
(7)
►
2007
(23)
►
Dec
(1)
►
Mar
(18)
►
Jan
(4)
►
2006
(23)
►
Dec
(10)
►
Nov
(13)