ครับตามชื่อ หัวข้อ ผมต้องการนับว่าใน Current Directory ที่ผมอยู่มีไฟล์ทั้งหมดกี่ไฟล์ และถ้าใน Current Directory มี Subdirectory แล้วก็ใน Subdirectory มีไฟล์ซ่อนอยู่ ก็ให้นับรวมมาด้วย โดยไม่นับรวม Subdirectory นั้นๆ คำสั่งเป็นดังนี้
./a.txt
./b.txt
./aa/aa.txt
./bb/bb.txt
# find . -type f | wc -l
4
เป็นอันเสร็จพิธี…ที่มาก็มาจากเจ้ Goo นั้นแหละครับผม
Related Posts
How to install ARWPost in Ubuntu server 14.04.1
I have tried to compile an ARWPost software many times but ARWPost.exe didn’t exist. Finally, I have updated something in file configure.arwp & src/Makefile. You can see what I have updated in those files below. Post Views: 8,136

Aoddy
March 31, 2015My keyboard are not mapped correctly on VMWare server.
After I installed the VMWare server 1.0.8 complete. I have found a problem in my keyboard such as I could not use up/down/right/left arrow keys. So I tried to searh a solution for solve this problem. Sure I found !!! Everything is in the Google. Post Views: 2,227

Aoddy
March 6, 2009How to backup running config on Cisco switch&router.
This is a simple solution for backup running config on Cisco switch&router. Before you start to backup you should install tftp service expect command After installed tfpt service & expect command. You can test to backup script by my example script below. Post Views: 2,673
