ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: yaron on July 29, 2012, 03:53:57 AM

Title: How do you move a file with a specific tag
Post by: yaron on July 29, 2012, 03:53:57 AM
i'm trying to move files that have a specific tag(keywords) to another folder,
What I managed to do is

exiftool "-directory<keywords" *.jpg

But it created a folder with the folders named according to keywords,
And it's not exactly what I'm trying to do.

I want to move the file if it has something in the keywords tag
Maybe someone knows how it's done right?
Title: Re: How do you move a file with a specific tag
Post by: yaron on July 29, 2012, 04:40:14 AM
something that works
that I composed from a few different posts on the forum

exiftool -directory=test -if "not defined $keywords" -ext eps .

posted it back
Maybe this will help Someone
Title: Re: How do you move a file with a specific tag
Post by: Phil Harvey on July 29, 2012, 07:34:29 AM
The command you posted will move files with no keywords.

To move files with a specific keyword, you can use -if "$keywords =~ /some keyword/i"

(the i makes it a case-insensitive match.  Use single quotes on Mac/Linux, or double quotes as above in Windows)

- Phil