Rename files in bulk
Give hundreds of files clear, consistent names in one go.
The prompt
In the folder ~/Documents/Invoices, rename every PDF to the pattern YYYY-MM-DD_Customer_Amount.pdf using the date, customer name and total written inside each invoice. Show a table of old and new names first, then rename after I confirm.
What the AI will do
- Reads the date, customer and total inside each invoice PDF.
- Shows a table of old and new names.
- Renames after you confirm and lists any file it could not read.
On Windows, Mac and Linux
All three: reading PDFs needs a program like Python installed. Windows: characters such as : ? * " are not allowed in file names, so they are left out.
How to use it
- Make sure Shellway is connected in ChatGPT, Claude or Cursor.
- Paste the prompt and change the folder names or paths to match your computer.
- Review the plan your AI shows before you confirm any changes.
Example reply
An illustration of a typical answer. Your AI will show the real files, names and numbers from your computer.
Old name New name scan0012.pdf 2026-10-04_Sharma Traders_12500.pdf Invoice (3).pdf 2026-10-11_BlueLeaf_4320.pdf doc_8812.pdf 2026-10-19_Kumar & Sons_890.pdf ... 46 files. 2 PDFs had no readable date; I left them unchanged. Rename the 46?
Tips
- If some files cannot be read, ask it to list them separately instead of guessing.
Good to know
Your AI shows its plan before it changes anything, and your rules on the computer still apply: read-only mode, allowed folders and blocked commands, with a backup before each file edit (safety rules). Works in ChatGPT, Claude, Claude Code and Cursor; the free plan gives 50 actions a day (pricing).
Related prompts
Organise my Downloads folder
Sort files into folders by type and date, and ask before moving anything.
Find duplicate files
Find exact duplicate files by their content, not just by name, and list how much disk space you can free on your computer.
Clean up my desktop
Move desktop clutter into tidy folders without losing anything.