[Gllug] Match optional character in filename expansion with find

gvim gvimrc at gmail.com
Thu Feb 16 14:57:21 UTC 2012

In the `find' command how do I match an optional end character, eg. match all files ending in 'html' or 'htm'?

find . -name '*.ht{m,ml}' -print

... doesn't work. Perl regexes have ? so what's the equivalent using `find'.

Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list