Ik I can use grep to find filenames with specific characters and then print that to a list but idk how to utilize said list to rename. I found another solution which’s using mv but couldn’t figure out how to make it work w subdirectories. I think using both grep and mv in unison’s the answer just idk how to do it. plz halp

  • sinextitan@lemmy.worldOP
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    exactly what I did. I also didn’t know the existence of rename. how would I go abt using it alongside find?

    edit: wrong cmd mentioned

    • zeppo@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 hours ago

      I’ve never really used rename. It has different features compared to mv, though. rename has more options for batch renaming such as regular expression support, though the behavior varies by distro.