How to manage files to subfolder by their first 3 character?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hi,

I'm data wrangler in film industry, and I need to sort converted files into specific folder name.
I look into your manual under match patterns, but I can't get it done. Please help.


C001_C009_0813VM
C001_C003_0813L1
C001_C002_08132J
C001_C001_08138L
B002C002_190530_R2AB
B002C001_190530_R2AB
B001C001_190530_R2AB
B001C002_190530_R2AB
A002C003_190530_R0HH
A002C002_190530_R0HH

I want to these files to subfolder stat with their first 4 characters like this,

A
A002
A002C003_190530_R0HH
A002C002_190530_R0HH
C
C001
C001_C009_0813VM
C001_C003_0813L1
C001_C002_08132J
C001_C001_08138L
B
B002
B002C002_190530_R2AB
B002C001_190530_R2AB
B001
B001C001_190530_R2AB
B001C002_190530_R2AB

Is it possible to do this by single rule?

Thank you.
sleepyblue
 
Posts: 1
Joined: Thu May 30, 2019 10:19 pm

The formatting didn't come through, I think, but it looks like you only want to file by the first character? If that is the case, create a custom attribute which matches the first character. You can then use that attribute in the "Sort into subfolder" pattern.
Mr_Noodle
Site Admin
 
Posts: 8361
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support