Skip if filename matches pattern?

Started by theprof, October 20, 2024, 06:05:40 PM

Previous topic - Next topic

theprof

I have the following command:
exiftool \
-P \
-overwrite_original_in_place \
-FileOrder CreateDate -FileOrder -FileSize -FileOrder FileModifyDate \
-api QuickTimeUTC \
-if '$MimeType=~/^(video|image)\//i' \
'-AllDates<FileModifyDate#' \
'-AllDates<${DateTimeOriginal#;$_ = undef if $_ lt "1971"}' \
'-AllDates<${CreateDate#;$_ = undef if $_ lt "1971"}' \
-d "%Y-%m-%d %H-%M-%S %%.2nc.%%le" \
'-FileName<FileModifyDate' \
'-FileName<${DateTimeOriginal;$_ = undef if $_ lt "1971"}' \
'-FileName<${CreateDate;$_ = undef if $_ lt "1971"}' \
"$DIR"


What I want to do is if the "FileName" already matches the pattern, then it should skip over that file.