Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_sed-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_sed-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for simple_sed-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8146f82341f304e4e29b8dd5054ecce1f3d7ffb0ad0d704409125b4438182f87
MD5 757af5838bdb2b25814ca63e82a8a6bd
BLAKE2b-256 bdd6296db348fcc53a8a55b38059994644a3305b49031a4568ba81f7b98c8fd5

See more details on using hashes here.

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

Hashes for simple_sed-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83b4359cb72aa276ff6fce73e090d5f0a618cbc9b197b66295022d94ce1768a3
MD5 ebb56e559b3597d36aa9ec9ec269e3c2
BLAKE2b-256 ed017a924005c4e71b5832799e1e91a560e156d72dbaff1c9a8e420b2673f2fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page