• plumcreek@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 months ago

    qmv -f do ${dir}

    … for quickly moving and renaming files. The default ‘qmv’ opens up your preferred text editor with a list of the source and destination name of the directory of files you want to move/rename. The ‘-f do’ tells the command we only want to see/edit the [d]estination [o]nly. If you need to rename/move a bunch of files, it’s much quicker to do it in vim (at least for me).

    • drcouzelis
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 months ago

      It sounds similar to one of my favorite commands! vidir 🙂

    • huf [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      vidir is similar

      there’s also rename (the perl one, not the shit one). i have fond memories of renaming albums with rename 's/(\d+)/sprintf "%02d", $1/e' so they’d ls in the correct order