The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-26-2008
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 208
Quote:
Originally Posted by mcraul View Post

Code:
# find /var/ -type -size +10000 -mtime -20 -exec ls -l {} \;
find: invalid argument `-size' to `-type'

Did i run this wrong?

thanks
-type needs a qualifier (file, link, directory) so it should look like:


Code:
find /var/ -type f -size +10000 -mtime -20 -exec ls -l {} \;
find: invalid argument `-size' to `-type'