PerlbeginnerdevopsAI generated

Bulk File Renamer and Organizer Script

Build a script that scans a directory tree, renames files according to configurable regex-based patterns, and organizes them into subfolders by file type or date. Learners practice File::Find traversal, regex substitution, and safe filesystem operations.

Estimate
~6.5h
Steps
5
Completed by
0
Proposed by
codeseed.app

File::Find · Perl core modules

Project roadmap

  1. 01

    Traverse the directory tree

    ~1.5h

    Use File::Find to recursively collect file paths from a target directory.

  2. 02

    Define renaming rules

    ~1.5h

    Write regex-based substitution rules for cleaning up filenames (spaces, case, dates).

  3. 03

    Implement organization logic

    ~1.5h

    Group files into subfolders based on extension or modification date.

  4. 04

    Add a dry-run mode

    ~1h

    Let the user preview planned renames/moves before applying them.

  5. 05

    Execute and log changes

    ~1h

    Perform the file operations and write a log of every rename/move for undo reference.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~6.5h · 5 steps

Tech stack

File::FindPerl core modules