[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] Shel command



find . -name "*.html" -exec grep -ni "my_logo.jpg" {} \; -print

That's the on I am always using.

Mike

-----Oorspronkelijk bericht-----
Van: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]Namens Or-Or
Verzonden: woensdag 15 oktober 2003 17:07
Aan: cobalt-developers@xxxxxxxxxxxxxxx
Onderwerp: [cobalt-developers] Shel command


Is their command to search for text within a file? I'm trying to find all
index.html files (in /home/sites/) containing the text my_logo.jpg.

i.e. locate index.html | [command to find my_logo.jpg]
-or-
Something like: find /home/sites/.*index.html | grep -v -g
'^/home/sites/.*/_vti_cnf' | [command to find my_logo.jpg]


- Chris

_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers