Can I use find to find all files which have extended attributes set? Let's say, I want to find all files with +i, immutable attribute in /foo and its subfolders.
I could not find any, mention of extended attributes in man find.
Is there any other way to find all files with attributes
I am using Debian Wheezy
findmethod. The link to Gille's answer is this one.find(the same that comes with Mac OS) has both-xattrand-xattrnameoptions to deal with extended attributes. To find files that have extended attributes set you can just use something likefind . -xattr -exec xattr -v {} \;. Use-xattrnameto search for specific attributes.find ~/some-path/ -xattrname com.apple.FinderInfo -exec xattr -d com.apple.FinderInfo {} \;-xattrin any manpage from MacOS, FreeBSD or OpenBSD.