[bug #58941] wishlist: Support for -xattr -xattrname

Kevin Locke <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?58941>

                 Summary: wishlist: Support for -xattr -xattrname
                 Project: findutils
            Submitted by: kevinoid
            Submitted on: Wed 12 Aug 2020 02:34:14 PM UTC
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: None
         Discussion Lock: Any
           Fixed Release: None

    _______________________________________________________

Details:

It would be great if find could support searching for files based on the
presence/absence of extended attributes (xattrs).

The only way I could find to do this currently is via -exec, as suggested in
https://unix.stackexchange.com/q/162359 and
https://unix.stackexchange.com/q/132795

For reference, OS X find supports xattr search with the tests:

-xattr
True if the file has any extended attributes.

-xattrname name
True if the file has an extended attribute with the specified name.

per
https://opensource.apple.com/source/shell_cmds/shell_cmds-203/find/find.1.auto.html

Thanks for considering,
Kevin




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58941>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.