Welcome, Guest
Username Password: Remember me

My Shell Script Usage Collection
(1 viewing) (1) Guest
Shell Script
  • Page:
  • 1

TOPIC: My Shell Script Usage Collection

My Shell Script Usage Collection 2 years, 7 months ago #31

  • sgadmin
  • OFFLINE
  • Moderator
  • Posts: 13
  • Points: 87091
  • Karma: 0
  • Honor Medal 2009
Count Total number of files in Directory and Subdirectory
> find . -type f | wc –l

Count Specific extention files in Directory and Subdirectory
> find . -type f -name \*.mnp |wc –l

Count only Directory
> find . -type d | wc –l
  • Page:
  • 1
Time to create page: 0.52 seconds

     
    
Home Forum