ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: neebah on July 18, 2018, 12:07:25 AM

Title: File Inventory
Post by: neebah on July 18, 2018, 12:07:25 AM
Is it possible to output a text file in the following format based on all of the files in a specified directory

Date #1
         File 1
         File 2
Date #2
         File 1
         File 2

etc. 
Title: Re: File Inventory
Post by: neebah on July 18, 2018, 12:09:47 AM
Also could this be done for all of the tags in all files.  Basically replace the word Date with Tag. 

With a count for each tag type of the number of files that possess it. 
Title: Re: File Inventory
Post by: Phil Harvey on July 18, 2018, 07:22:51 AM
I would do it like this:

exiftool -createdate -filename -T | sort

Then you get a list of sorted dates and filenames.  You would need to do some post processing to get the dates on a different line.

- Phil
Title: Re: File Inventory
Post by: neebah on July 18, 2018, 08:53:11 AM
I'm not sure I clarified myself.   Here is what I meant

Date #1
         Files with Date #1
         ....
Date #2
         Files with Date #2
         ....
etc


I'm using this as a way of collecting duplicate (at least where the dates are the same)
Title: Re: File Inventory
Post by: Phil Harvey on July 18, 2018, 08:53:48 AM
Yes I understood.