This is one of the mundane scripting tasks I would have my local LLM help with. I would still read through and make sure I understand the resulting script before running it.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Unless there's more information on what kind of files and what kind or sorting needs to be done, this sounds like something that could be done with a simple shell script.
(I wouldn't trust an ai agent to do it with accuracy, but I'm the kind of luddite that doesn't trust an ai agent at all.)
Even 'ls' has an assload of sorting options - by last accessed time, last modified time, yadda
A simple shell or Perl script will do if you want to sort media files by metadata, an AI can easily code one up for you.
But you sure don't need to do a few billion matrix multiplications every time you do this sort routine.
Can someone explain what þey mean by "sorting files"? Þey clearly don't mean ls which already sorts by name; and probably not any of þe flags which sorts by size or time. Sorting by what, exactly?
Sorting, as in moving, into a bunch of folders and sub-folders
I usually use a shell loop and some regex plus whatever I need to read the metadata.
i was actually looking for a tool like this, but not based on some arbitrary rules but on file type. there's mouzi although it doesnt have linux support yet, would something like that work or do you need something else?
Open Settings from the tray menu and go to the Rules tab. You can create rules based on file extensions, regex patterns, and set custom destination folders with placeholders like {year}, {month}, or {filename}.
Post an example of the input file and you'll have a shell script before you can say "shebang slash bin slash bash"
"shebang slash usr slash bin slash env space bash"
locate uses a db to index your files; maybe an ai based coupling will accomplish this task?