Here’s something I can’t figure out: When using dired to manage files, let’s say I have a top level directory with a ton of subdirectories, each with a GoPro video inside (unique name/time/date for each file name). How do I move them all at once to that top level directory for easier management/renaming? I don’t want to have to go into each directory and move them one at a time with R. Let’s say all of the files are MP4 or HEVC.

  • FrozenOnPluto@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    I dunno, sounds like a one liner in cli … unless you need to do this many times in the future or just want to force it into Emacs for fun (which is okay :), strikes me as a 10s thing to do on cli if you’rr a Mac or Unix-like user

    cd /to/top mv */*mov .

    Repeat for other file type.

    That assumes they’re only one level deep

    Another one liner …

    find /top -name “*mov” -exec “mv {} /top” ;

    Be careful as just tapping out on phone but you get the idea

    • TyrionBean@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Ah, this sounds even simpler. I. hadn’t thought of this, but I was doing everything in dired for management/renaming, so I hadn’t thought of doing something like this in the CLI. I’ll make a note of it. Much appreciated.