substpat 37.1
Regexp-based string substitution tool. Source in C included.
Short: Regexp-based string substitution tool. Source in C included. Author: Matthias.Bethke@stud.uni-erlangen.de Uploader: Matthias Bethke stud uni-erlangen de Type: util/cli Version: 37.1 Requires: regexp.library V38 (util/libs/regexp.lha) Architecture: m68k-amigaos substpat (should have been called "subst" for simplicity but that's already used by the shell :-( ) can substitute a string for any occurence of a pattern in a character stream. It reads from stdin and writes to stdout so it can be used in pipes. A typical invocation: substpat ^[Aa]ssign ";assign" <s:startup-sequence This would comment out all lines starting with "assign" in your startup-sequence and write the resulting file to stdout. Substituting multiple patterns with different strings requires a pipe: substpat ^[Aa]ssign ";assign" <s:startup-sequence | substpat "REMOVE ?" "" (comment out assigns and kill all "REMOVE" keywords)
Gratis
Desde el Amiga: abre Hangar y busca substpat.
| Autor | Matthias.Bethke@stud.uni-erlangen.de |
|---|---|
| Categoría | util/cli |
| Tamaño | 4 KB |
| Para | m68k-amigaos |
| Necesita | regexp.library V38 (util/libs/regexp.lha) |
| Origen | Aminet |