1

How can i list all files with a size less than 400 bytes and having the rights 644 ?

4
find $directory_to_search -perm 644 -size 400c

should do the trick.

| improve this answer | |
  • 2
    he wanted atmost 400 bytes so it should be -size -400c – flolo Apr 2 '11 at 11:56
  • 1
    Perhaps add -type f – reinierpost Apr 4 '11 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy