YELT is not SED -- but it is an extended variant
If you are SED user and you love it but wish it could do a few more things, or, more likely, if you would like to use SED but you find writing effective programs a bit overwhelming, you might want to give yelt a try.Yelt is stream text editor that is intended to be used as part of command line scripts. Yelt's command language is very similar to SED's (with a few incompatibilities) but with a few extensions:
- 10 string register variables for general use
- defining and calling text processing functions
- an if-then-else statement
- increment and decrement of integer strings
- Processing lines, using the yelt script language, from a file whose name is computed or read from stdin. That is, you are not restrained to processing lines passed in on the command line.
- Writing to files other than stdout -- again, whose names are computed.
- escape sequence support in most places (\n, \e, etc)
- cut statement (lets you process columns of text)
- string substitution using a string-to-string map file whose name is specified on the command line.
- builtin tab expansion
- easy extensibility for adding your own text processing shortcuts.
- parsing primitives.
Yelt does not have goto labels, but it does have a while loop. Scripts do work differently in yelt than in SEd, but the transition from sed to yelt is very minor. See the following files:
Copyright Info
Obtaining the source and compiling Get Yelt
Compiling on linux should be as simple as extracting the .zip file into a directory and running GNU make.
To compile Windows, if you are using cygwin, should work exactly the same way. If you are not using cygwin or do not have a GNU make that works for you, just try compiling the yelt source files like this:
cl /GX /GR -I. -DSTDC_HEADERS=1 /Feyelt.exe *.cpp *.c