MDLS(1) BSD General Commands Manual MDLS(1)
NAMEmdls -- lists the metadata attributes for the specified file
SYNOPSISmdls [-nameattributeName] [-raw [-nullMarkermarkerString]] file...DESCRIPTION
The mdls command prints the values of all the metadata attributes associated 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, suitable 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)".
SEEALSOmdfind(1), mdutil(1)xargs(1)
Mac OS X June 3, 2004 Mac OS X

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors

Report errors in the content of this documentation with the feedback links below.

Bug reports

Report bugs in the functionality of the described tool or API through Bug Reporter.

Formatting problems

Report formatting mistakes in the online version of these pages with the feedback links below.