Main Menu

Formatting output

Started by metadataddicted, April 07, 2025, 06:32:32 PM

Previous topic - Next topic

metadataddicted

Hello everyone,
I would like to format the console output of a command like this:
exiftool.exe -overwrite_original_in_place -P -r -ext dng -XMP:XMP-crs:RawFileName<PreservedFileName .

I would like to print, for every file processed, a custom string, such as:
some spaces, the filename, [file number/total files]

Hello everyone,
I would like to format the console output of a command like this:
exiftool.exe -overwrite_original_in_place -P -r -ext dng -XMP:XMP-crs:RawFileName<PreservedFileName .

I would like to print, for every file processed, a custom string, such as:
some spaces, the filename, [file number/total files]

I would like to get an indented log such as:

process begin
    section 1 begin
           file 1 [1/10]
           file 2 [2/10]
           ...
           file 10 [10/10]
    section 1 end
process end

I have tried looking into -progress and -p options but I am not finding any way to start with. -p option seems to have what I need but when I put it in a command line where i assign some tag, nothing gets printed.

Is there any way to get something like this?
Thanks


Phil Harvey

The output formatting options all apply only when reading metadata.  There is no option to format the output if you are writing to tags.  The only options when writing are to include additional information in the output. (I can think of only -progress and -v that do this.)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

metadataddicted

Hi Phil,
ok, I can use -progress.
Thank you for your answer.