PageList2
Search and Subscribe
แหล่งรวมความรู้ทางด้าน Unix (Sun Microsystems Inc),HP-UX,Linux รวมถึงการเขียน Shell Script
00:37
การนับจำนวนไฟล์ ใน directory
Posted by K-Tech · 1 Comments in this post
ls *wc นับจำนวนไฟล์
เช่น
oracle:/oradb/tmp>ls *wc
91 91 2184
ก็แสดงให้เห็นว่า จำนวนไฟล์ใน directory /oradab/tmp มีอยู่ 91 ไฟล์
About this blogger theme
This blogspot theme one of the first templates I have created. This is free, supported and ready for download. If you have any questions feel free to leave your comment on my weblog. Hope you like it. Enjoy!
This blogspot theme one of the first templates I have created. This is free, supported and ready for download. If you have any questions feel free to leave your comment on my weblog. Hope you like it. Enjoy!
1 comment
การนับจำนวนไฟล์ ใน directory
การนับจำนวนไฟล์ ใน directory

The same output can be show using;
bash-3.00# ls|wc -l
5
bash-3.00# ls -l
total 48
-rw-r--r-- 1 root root 188 Aug 25 11:42 breg_business_logic_20090825114251302.log
drwxr-xr-x 2 noaccess noaccess 177 Aug 25 11:41 hsperfdata_noaccess
drwxr-xr-x 2 root root 178 Aug 25 12:43 hsperfdata_root
-rw-r--r-- 1 root root 30 Aug 25 11:40 ogl_select270
-rw-r--r-- 1 root root 258 Aug 25 11:43 rootswup.trc