A set of cursed scripts emulating standard utilities only usable when you are stucked with GNU sed
Do not be fooled by the above seductive sentence. Most of the time, even when working in a very restrictive environment, if you can find GNU sed on the server you are working on, it is certainly neither the only friend you have nor the best choice for what you are trying to achieve. Among (maybe not so) many other tools already installed on the server you are working on, you can probably find awk, perl, python or a shell. Except for very specific usecases, these are options you should consider before.
The main purpose of this repository is the challenge. Some popular utilities are already covered into the GNU sed documentation but GNU sed can do much more and I am having fun writing useless GNU sed scripts without relying on external tools.
Some features implemented with GNU sed originated from these utilities:
base64bccalcdchdjqjson_ppjson_xsodxxdyesyq
- Each script has its own README written as a header comment. You can find a (GIF-formatted) WATCHME version for each README into the
./docdirectory. Except a brief description, it contains useful details to make the script work:- A command example.
- A set of usable environment variables to configure the script.
- Potential known limitations.
- If you want to make a script work with an other
sedimplementations than the GNU one, you will need to rework it. Depending on the script and thesedimplementation you are using, the amount of work needed can vary a lot. It may range from just some minor replacements to more technical rewriting due to differences between the implementations' feature set. - I assume a POSIX-compliant shell (bash, ash, dash, ...) is also installed on your laptop.
If you have any idea to emulate uncovered features coming from standard utilities:
- you can open a pull request with your GNU
sedscript, - you can open an issue. If I am interested in and have time for, I will go for it. Otherwise I will let it opened if someone else is interested to implement your idea.
This repository is dedicated to the public domain. See the LICENSE file for more details.