![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
"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
|
|||
|
|||
|
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
|
||||
|
||||
|
A quick way to just get a count would be...
cd to the top level directory... do... ls -lR | grep .html | wc -l |
|
#5
|
|||
|
|||
|
i will try it monday, but REALLY REALLY THANKS for all!!!!!!!
|
|
#6
|
|||
|
|||
|
It works great!!
Really thanks!! |
|||
| Google The UNIX and Linux Forums |