Sed Studio is a modern, graphical architect for building, testing, and exporting sed (Stream Editor) scripts. Designed for Linux power users and beginners alike, it simplifies complex text transformations through a real-time sandbox and an intuitive multi-command chain logic.
- Multi-Step Command Chaining: Sequence multiple
sedexpressions (-e) into a single execution plan. - Live Preview Sandbox: Test your logic against sample data instantly.
- Auto-Escaper: Automatically switches delimiters (e.g.,
/to|) when file paths or URLs are detected. - Extended Regex Support: Enabled by default (
-E) for modern, readable regex syntax. - Bash Script Exporter: Turn your chain into a professional, portable
.shscript with built-in file looping and safety checks. - Regex Cheat Sheet: Sidebar presets for common tasks like IP masking, HTML stripping, and line commenting.
- Python 3.8+
- Linux, Windows, or macOS
- Clone the repository:
git clone [https://github.com/yourusername/sed-studio.git](https://github.com/yourusername/sed-studio.git) cd sed-studio - Install dependencies:
pip install customtkinter pyperclip
- Run the application:
python sed-studio-pro.py
Chaining Commands Enter your search/replace patterns in the Step Editor.
Click Add Step to Chain.
Your final command is automatically constructed using the -e flag for maximum efficiency.
Handling File Paths Sed Studio monitors your input. If you type a path like /etc/passwd, the tool automatically uses | as a delimiter to avoid "Leaning Toothpick Syndrome."
After exporting a script (.sh), ensure you give it execution permissions:
chmod +x my_generated_script.sh
./my_generated_script.sh target_file.txt