I have 20’000 mostly mp4 or webm files
I used a naming scheme that has the last two digits signifying different criteria about the video
example joe 24070, joe 24050, joe 24051
joe 24051 is a revised edit of joe 24050
The first in the series of joe is joe 100, joe 110, joe 140

As an example I would like to sort all files ending in 50, 51, 52, 53, 54, 55, 56, 57, 58, 59
I can’t specify a set number of characters as it changes as more content is added to the end of the series Kfind will do a dandy job of searching folders & subfolders, how would I set the search criteria?
Is there some other GUI tool?

  • 2xsaiko@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    It’s very unlikely there’s a GUI tool that will do this unless you write one yourself, that sounds like a very uhhh, unique naming scheme. You can sort them using a shell script:

    for file in *; do
      name="${file%.*}"
      suffix="${name: -2}"
      printf '%s\t%s\n' "$suffix" "$file"
    done | sort
    

    Alternatively, modify this so that it will create symlinks in a new folder that have names that will get sorted correctly in whatever GUI tool.

  • Visikde@lemmy.kde.socialOP
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    Is this the same Kfind?
    https://documentation.sas.com/doc/en/workbenchcdc/v_001/vwbnlsref/p01mz5rxo7ovosn1nhhm9pqdwhs2.htm

    How I got here
    Joe goes camping for the weekend entire trip = joe 100, Joe goes hiking = joe 120, Joe goes watersking = joe 140, Joe goes biking = joe 160
    Made the last digit 0 in case there are multiple versions
    Went up by increments of 20, in case there are new activities to be included

    What naming scheme would be easier to sort?