The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-28-2008
rubin's Avatar
rubin rubin is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2007
Posts: 321
You also need to quote the patterns inside the braces, especially when they contain wildcards, otherwise the command works fine:

Code:
find $HOME -mount -size +1 \(  !  \( -name "*_Entry_*.xml.gz" -o -name "*_ECI_*.xml.gz"  \) -name "*.gz" -o -name "*.Z"  \) -mtime +1 -print