thank you, but i don't need regex, I'm just searching, that is there a
shorter way in the find command to search for e.g.: two filenames

find . -type f -name "*.sh" -o -name "*.html"

so that I don't have to write "-o -name" at every time :D:P


On Sat, Jul 18, 2009 at 12:08 PM, Siggy Brentrup <deb...@psycho.i21k.de>wrote:

> On Sat, Jul 18, 2009 at 12:00 +0200, Soren Orel wrote:
> > so that I don't have to write this:
> >
> > find . -type f -name "*.sh" -o -name "*.html"
> >
> > is there a
> >
> > find . -type f -name "*.sh|*.html"
>
> man 1 find
>
> look for -regex
>
> hth
>  Siggy
> --
> Please don't cc: me when replying on the list.
>    bsb-at-psycho-dot-informationsanarchistik-dot-de
> or:                    bsb-at-psycho-dot-i21k-dot-de
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkphnxQACgkQ94B/SGO8KQdMSACg05TkYwrTAOMJ6VSqauTlLN3U
> 3I8An0jlpDdodMlgNpjjKrN5djauoixH
> =pfUz
> -----END PGP SIGNATURE-----
>
>

Reply via email to