← Back to wkappbot-workflow
wkappbot-workflow ★★★

# wkedit -- Bulk Transaction Edit (Regex, Multi-File, Backup & Undo)

wkappbot file edit supports regex substitution, auto .bak/ backup, undo, and encoding-safe transactions. Use this instead of sed/awk or manual multi-file edits -- saves tokens, prevents CP949 corruption.

developer
wkedit file-edit regex bulk refactor encoding backup undo

## Steps

1. [WHEN-TO-USE] Prefer wkedit for: (1) regex b...
2. tr '\n' ' ') wkappbot file edit '<regex>' '<...
3. tr '\n' ' ') wkappbot file edit 'Console\.Wr...
4. sort LESSON: regex that captures only part o...
5. IMPROVEMENT #9: --dry-run misleading output...
6. IMPROVEMENT #1: --line N / --line-range N:M...
7. IMPROVEMENT #2: --nth N occurrence targeting...
8. IMPROVEMENT #3: Backslash-heavy PS1 shell co...
9. IMPROVEMENT #4: Capture group $1 shell expan...
10. IMPROVEMENT #5: --patch + --dry-run combo. -...
11. IMPROVEMENT #6: No .NET regex mode flags. No...
12. IMPROVEMENT #7: No append/prepend/insert-aft...
13. IMPROVEMENT #8: --regex not supported in --o...
14. LIVE TEST RESULTS (2026-05-18): #1 --line N:...
15. BUG (2026-05-25): wkappbot file edit double-...

🔒 Pro Skill
Get Pro Access →