perl_edit
Edit files with Perl one-liners for advanced modifications. Supports cross-platform scripting, backups, and multiline mode to streamline file updates efficiently.
Instructions
Edit files using Perl one-liners (more powerful than sed, better cross-platform support)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backup | No | Create backup file | |
file | Yes | File to edit | |
multiline | No | Enable multiline mode (-0777) | |
script | Yes | Perl script (e.g., "s/old/new/g" or "$_ = uc" for uppercase) |