manpagez: man pages & more
man mdls(1)
Home | html | info | man
mdls(1)                   BSD General Commands Manual                  mdls(1)


     mdls -- lists the metadata attributes for the specified file


     mdls [-name attributeName] [-raw [-nullMarker markerString]] file ...


     The mdls command prints the values of all the metadata attributes associ-
     ated with the files provided as an argument.

     The following options are available:

     -name        Print only the matching metadata attribute value.  Can be
                  used multiple times.

     -raw         Print raw attribute data in the order that was requested.
                  Fields will be separated with a ASCII NUL character, suit-
                  able for piping to xargs(1) -0.

     -nullMarker  Sets a marker string to be used when a requested attribute
                  is null.  Only used in -raw mode.  Default is "(null)".


     mdfind(1), mdutil(1) xargs(1)

Mac OS X                         June 3, 2004                         Mac OS X

Mac OS X 10.6 - Generated Thu Sep 17 20:08:06 CDT 2009
© 2000-2023
Individual documents may contain additional copyright information.