The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
string search in folders with particular multiple file extension
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
string search in folders with particular multiple file extension
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
10-24-2005
vertigo23
Registered User
Join Date: Jul 2005
Location: SF, CA
Posts: 73
find /folder/path -name "*.html" -or -name "*.xml" | xargs grep ABC
or, if you run into errors due to space characters in the filename:
find /folder/path -name "*.html" -or -name "*.xml" -print0 | xargs -0 grep ABC
man find for more info
vertigo23
View Public Profile
Find all posts by vertigo23
Find vertigo23's past nominations received
Find vertigo23's present nominations given