Afficher un message
Vieux 27/07/2007, 03h43   #1
wcyee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut find files matching one of multiple patterns

Hi,

Is there an easier way to write this "find" expression to find any
files matching either *.bak or *.bck:

find . \( -name "*.bck" -o -name "*.bak" \) -print

Since all I want is really something like

ls *.{bak,bck}

but recursively over all subdirectories, I wonder if there's a way to
write a similar, shorter expression for the -name argument in find.

Thanks!

  Réponse avec citation
 
Page generated in 0,04579 seconds with 9 queries