Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find command

Status
Not open for further replies.

SotonStu

Programmer
Joined
May 7, 2003
Messages
33
Location
GB
How do i find all files of type *.html or *.htm in my directory, i have:

find . -type f -name '*.html'

for all html files, but i dont know how to include htm as well
 
You could simply do
find . -type f -name "*.htm*"
 
Or

# find files named *.html or *.htm
find . -type f \( -name '*.html' -o -name '*.htm' \)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top