I run Mylar on my Xubuntu server to manage my comic collection. I found out recently that there’s a tool that can convert the embedded .jpgs to .webp to save space, but it only works on cbz files and not cbr (zipped vs rar for those who don’t know). I wanted to convert all of my cbr to cbz so that I could run the tool on all my comics, so I needed to search hundreds of subdirectories for them and move them to the same folder to be processed.

Under Windows, I’d just type *.cbr into the search bar built into Explorer from the root comic directory, hit enter to get a list of files, select them all, and move them to the new folder. On Xubuntu, it’s nothing like as simple.

I found the search option in Thunar which opened Catfish, typed in *.cbr, and got a no files found message. After looking through the very limited options, I started searching for a way to do it. About thirty minutes later I’d found dozens of links telling me to use different, Terminal only, tools, but nothing about how to search subdirectories from the Catfish GUI. Purely by accident, I found a post from 2012 that mentioned the fact that Catfish doesn’t use wildcards, so just search with .cbr, something that’s not mentioned in the official docs.

I tried it, and it searched the subdirectories too, and found my files! Except there was no way to copy or cut and paste, just open, show in file manager, copy location, save as, or delete. No good options for almost 500 files across several dozen locations.

I ended up asking Chat GPT how to do it, and doing it through the Terminal, using this:

‘find . -type f -name “*.cbr” -exec mv {} /path/to/destination ;’

This is pretty basic functionality, and I had to resort to getting help to use the Terminal :(

  • deong@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    So your solution on Windows requires me to move all my files out of where they belong to process them? How do I get them all back when I’m done?

    I knew how to write that find command. Didn’t need to search for anything. And because I know how to do that, I can also search for every pdf file modified since last month. I can spit out a list of the gps coordinates for every photo I’ve taken, ordered by latitude. I can find every Python script on my computer that uses Pandas. I can do a million things that boil down to “find every file that matches some complex filter and do something to it”, and I learned one tool. I don’t need to learn one point and click app that converts comics, one that messes with photo metadata, etc.

    I can sympathize with the idea that there’s a high learning curve. And there’s nothing wrong with trying to provide ways for people to use their computer that require less knowledge. But recognize that you’re asking for a crutch here.

    • iamdanno@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I agree with a lot of what you say, but when you are handicapped (by lack of knowledge), it’s ok to ask for a crutch. Maybe you only need it temporarily, but it’s a massive help while you need it.

      I’ve tried switching to Linux several times, but there seems to be a lot of gatekeepers who just say (essentially), “you’re doing it wrong!”.

      I just want my computer to do what I want, without needing to use up hours trying to figure out some quasi-coding terminal command. Maybe I’m not the intended user, or something.

      • deong@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I agree with you. There’s nothing wrong with not knowing how to do something. We all start basically every endeavor not knowing how to do it. My complaint is specifically with people who march into that thing they haven’t learned yet with an attitude of “and you’re all wrong and stupid for not fixing it for me”.