Mac OS X,  Mac OS X Server,  Mac Security

Use the textutil Command To Query Office Files For Metadata

You can use the textutil command to pull metadata information from Office documents. Here, we’ll use the -info option to do so:

textutil -info hello.docx

The output would be as follows:

It might display:
Type: Word format
Size: 44068 bytes
Length: 4234 characters
Title:
Author: Charles Edge
Last Editor: Charles Edge
Subject:
Keywords:
Created: 2015-06-28 08:21:00 -0900
Last Modified: 2015-06-28 10:02:00 -1200
Contents: Hello world