Can CLI sort based on movie title
Posted: 13 Feb 2015, 18:15
I have a script I was trying to use. That would move renamed movie to a drive based on the first letter of the movie title. Ex: Firefox so would move it to the drive that houses movies with starting letters of d-h. So drive E is for movies with zero- C; drive F is for movies D-H; drive G for I-M.
My CLI script is:
I:\
F:\
[n =~ /^(?i) (0-9a-c)/ ? 'M:\' : n =~ /^(?i) (d-h)/ ? 'K:\' : n =~ /^(?i) (i-m)/ ? 'J:\' : n =~ /^(?i) (n-s)/ ? 'L:\' : n =~ /^(?i) (t)/ ? 'E:\' : 'D:\' }
This script creates a directory that is like 20 layers deep to the movie title.
So can the CLI use something like the script above to sort movies.
Thanks very much for answering.
My CLI script is:
I:\
F:\
[n =~ /^(?i) (0-9a-c)/ ? 'M:\' : n =~ /^(?i) (d-h)/ ? 'K:\' : n =~ /^(?i) (i-m)/ ? 'J:\' : n =~ /^(?i) (n-s)/ ? 'L:\' : n =~ /^(?i) (t)/ ? 'E:\' : 'D:\' }
This script creates a directory that is like 20 layers deep to the movie title.
So can the CLI use something like the script above to sort movies.
Thanks very much for answering.