| 6:48 pm on Sep 3, 2002 (gmt 0)|
I havenít used UNIX for a while, but I believe I used the find command for that type of task.
| 7:12 pm on Sep 3, 2002 (gmt 0)|
There might be a cleaner way but this will work from the directory you want to recursively search in.
find . -name "*.html" ¶ grep -c .
If you want a list of them you could do something like this:
find . -name "*.html" > temp.txt
| 7:19 pm on Sep 3, 2002 (gmt 0)|
What's the .-name bit?
I'm just getting a bunch of errors?
| 7:25 pm on Sep 3, 2002 (gmt 0)|
-name is telling find to look for files with that string in the name.
Make sure you have a space between the "." and -name.
| 7:29 pm on Sep 3, 2002 (gmt 0)|
Great, got it. thanks very much ;)
Didnt get ¦ grep -c to work though, I output it and then got a line count in vim...
| 7:32 pm on Sep 3, 2002 (gmt 0)|
¶ grep -c
¶ grep -c .
with the trailing dot.
¦ wc -l
would do the same thing
| 7:36 pm on Sep 3, 2002 (gmt 0)|
My eyes arn't the best ;)