znaleźć -name
nie używa wyrażenia regularnego, oto wyciąg ze strony człowieka na Ubuntu 12.04
-name pattern
Base of file name (the path with the leading directories
removed) matches shell pattern pattern. The metacharacters
(`*', `?', and `[]') match a `.' at the start of the base name
(this is a change in findutils-4.2.2; see section STANDARDS CON‐
FORMANCE below). To ignore a directory and the files under it,
use -prune; see an example in the description of -path. Braces
are not recognised as being special, despite the fact that some
shells including Bash imbue braces with a special meaning in
shell patterns. The filename matching is performed with the use
of the fnmatch(3) library function. Don't forget to enclose
the pattern in quotes in order to protect it from expansion by
the shell.
Więc wzór, który -name
trwa to raczej glob muszli, a nie w ogóle jak regexp
Gdybym chciał odnaleźć przez regexp zrobiłbym coś
find . -type f -print | egrep 'stub(\.py|\.server)'
Spróbuj 'find -name "stub * .py (\. serwer)?"' '-regex' – Vince
Zastosowanie jeśli chcesz u se wyrażenie regularne: 'find. -regex '. */skrót. * \. \ (py \ | py \ .server \)' ' – falsetru