Percerno Skillsbeta
← everything it can do · documents

Find Replace Files PPTX

Find and replace text across many files at once, in ONE command, with a preview first: a company name, a year, a price, a product name or a pattern (regular expression) in Word (.docx), PowerPoint (.pptx), Excel (.xlsx), text, Markdown, CSV and HTML files, keeping the documents' formatting. Use for: change the old company name in all these documents, replace 2026 with 2027 in every file, update the price in all offers, how many files mention X, bulk rename a term across a folder. Triggers: find and replace, search and replace, replace in all files, bulk replace, rename across documents, how many times does X occur in these files.

3 uses this weeksource Percernolicence MIT
Quality gate: PASS · makes it possible · measured 2026-10-24
Delivered a valid file in 1 of 1 requests; the bare model cannot produce this file type.
1/1 requests delivered a file through the connector
Security scan: clean · 2026-10-24 · 2 files
no network calls, shell tricks, credential access or instruction tampering found in its files.

Try asking

Say it in your own words; the assistant finds this recipe by itself. Examples:

“Use the find-replace-files skill to …”
Try this skill from Claude, ChatGPT or a chat on your own page. Free plan, no credit card.Get started free

Details

When it is the right choice

Find and replace text across many files at once, in ONE command, with a preview first: a company name, a year, a price, a product name or a pattern (regular expression) in Word (.docx), PowerPoint (.pptx), Excel (.xlsx), text, Markdown, CSV and HTML files, keeping the documents' formatting. Use for: change the old company name in all these documents, replace 2026 with 2027 in every file, update the price in all offers, how many files mention X, bulk rename a term across a folder. Triggers: find and replace, search and replace, replace in all files, bulk replace, rename across documents, how many times does X occur in these files.

The full recipe the assistant reads

Find and replace across files (one command)

python3 /skills/find-replace-files/scripts/replace.py <verb> … — inputs in /work/in, changed copies in /work/out (originals untouched). Always run count first and tell the person what will change, then apply. Each verb prints one OK … line or ERROR ….

Need Command
Preview: how many matches per file replace.py count --find "Acme A/S" /work/in/*.docx /work/in/*.pptx
Replace everywhere replace.py apply --find "Acme A/S" --with "Nordic Widgets ApS" --out /work/out /work/in/*
Ignore upper/lower case add --ignore-case
Pattern (regular expression) replace.py apply --regex --find "20(2[0-6])" --with "2027" --out /work/out /work/in/*.md
A whole folder give the folder instead of files: replace.py count --find X /work/in
  • Word, PowerPoint and Excel: the text inside paragraphs, tables, text boxes and cells is changed and formatting is kept. If a phrase is split across differently formatted pieces inside one paragraph, the paragraph is re-joined so the replacement still happens (its mixed formatting becomes that of the first piece); the OK line says how many paragraphs needed that.
  • Text, Markdown, CSV, HTML: plain text replacement; the file's encoding is kept as UTF-8.
  • Files with no match are copied unchanged so the person gets the whole set back.

Report the per-file counts from count, then the totals from apply, with the download links.

Files in this skill (3)
  • SKILL.md
  • scripts/__pycache__/replace.cpython-311.pyc
  • scripts/replace.py
Where it comes from

Written by Percerno, MIT licence.