A simpler, safer alternative to sed/awk for line-based file editing
Project description
simple-sed
A simpler limited version of sed / awk
AI-generated and unreviewed... But I used it.
Motivation
The LLm feature editing feature in claude code is limited. Claude therefore ends up doing silly thing like writing python scripts, or using sed to do edits. This can be hard to read and dangerous. This is intended to be easier to read and safer.
simple-sed can only edit the file in question. And has a more limited language which is intended to be easier to read.
Syntax
simple-sed <<<EOF
sub /line/ this is the new line
after /line/ next line
line after then
line after thatn
del /line/
before /line/ before 1
before 2
EOF
Installtion
pipx install simple-sed
Features
This might want an MCP server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_sed-0.1.0.tar.gz.
File metadata
- Download URL: simple_sed-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8146f82341f304e4e29b8dd5054ecce1f3d7ffb0ad0d704409125b4438182f87
|
|
| MD5 |
757af5838bdb2b25814ca63e82a8a6bd
|
|
| BLAKE2b-256 |
bdd6296db348fcc53a8a55b38059994644a3305b49031a4568ba81f7b98c8fd5
|
File details
Details for the file simple_sed-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simple_sed-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83b4359cb72aa276ff6fce73e090d5f0a618cbc9b197b66295022d94ce1768a3
|
|
| MD5 |
ebb56e559b3597d36aa9ec9ec269e3c2
|
|
| BLAKE2b-256 |
ed017a924005c4e71b5832799e1e91a560e156d72dbaff1c9a8e420b2673f2fc
|