May 9, 2003 #1 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
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
May 9, 2003 #2 TDun Technical User Joined Aug 9, 2001 Messages 335 Location GB You could simply do find . -type f -name "*.htm*" Upvote 0 Downvote
May 9, 2003 #3 Salem Programmer Joined Apr 29, 2003 Messages 2,455 Location GB Or # find files named *.html or *.htm find . -type f \( -name '*.html' -o -name '*.htm' \) Upvote 0 Downvote