in reply to search for duplicated via IPTC field (OS X)

So rather than just moving to the destination directory you want to create sub directories in the destination directory based on n initial characters mkdir is the command you need for that.

There are many ways to select the first fifteen characters, but substr is probably the most useful in this case

Have a go at that and let us know how you get on.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Replies are listed 'Best First'.
Re^2: search for duplicated via IPTC field (OS X)
by goppy (Initiate) on Aug 09, 2010 at 23:12 UTC
    So this would go from char 0 to the 15th?

    my $oneName = substr($names, 0, 15);

      It doesn't hurt to try it out yourself, in fact you may discover new things and waste a whole afternoon explaining the behaviour you observe ;)
      $ perl -e 'my $names="12345678901234567890"; my $oneName = substr($na +mes, 0, 15); print "$oneName\n";' 123456789012345
      So yes, that appears to do what you want.

      print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
        I don't have a compiler or know how to execute the code, that's going to be the next part of the operation or I would be testing, well after I ask where this bit of code goes ;) Normally in HTML, which I'm not very good at, it kinds of makes sense in an English written way but this code is like JavaScript and that stuff always throws me. Thanks for the help.