[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'.

gvim
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list