The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to compress html files JCR UNIX for Dummies Questions & Answers 2 03-13-2008 06:11 AM
Using Perl to add hyperlink to html files Raynon Shell Programming and Scripting 17 11-01-2007 02:03 AM
How to use lp to print html files ? KingOfHearts UNIX for Advanced & Expert Users 1 09-27-2006 10:30 PM
opening non-html files in lynx?? riwa UNIX for Dummies Questions & Answers 0 03-04-2006 02:07 PM
Using MIME to send html files cgardiner UNIX for Dummies Questions & Answers 2 06-28-2001 10:05 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-17-2002
Registered User
 

Join Date: May 2002
Location: Rome, Italy
Posts: 4
Number of html files

Hello to all!
I'm really new of this, i don't know unix so i have to ask a stupid question for you but important for me.
I need to know how many files .html there are on a unix server on a specified folder (and of course on their subfolders).
The same command in DOS is dir *.html /s.
Can you help me?
Thanks,

Giuseppe
Forum Sponsor
  #2  
Old 05-17-2002
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
"cd" to the "folder" (directory) in which the
files are located.

do...

ls -l *.html | wc -l

...this will return the count of the number of .html files
in the current directory
  #3  
Old 05-17-2002
Registered User
 

Join Date: May 2002
Location: Rome, Italy
Posts: 4
really thanks!
But tell me one more things, it's possible to have also a number of all html files contained in all the subfolders?
Thanks

Giuseppe
  #4  
Old 05-17-2002
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
A quick way to just get a count would be...

cd to the top level directory...

do...

ls -lR | grep .html | wc -l
  #5  
Old 05-17-2002
Registered User
 

Join Date: May 2002
Location: Rome, Italy
Posts: 4
Smile

i will try it monday, but REALLY REALLY THANKS for all!!!!!!!
  #6  
Old 05-20-2002
Registered User
 

Join Date: May 2002
Location: Rome, Italy
Posts: 4
It works great!!
Really thanks!!
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0