SedVi is a stream editor, similar in purpose to sed, but with some different capabilities. The script syntax of SedVi is based on the commands used by vi and Vim. If you already know both sed and either vi or Vim, then most parts of this page will probably seem self-evident to you.
SedVi gets its input from either a file, a pipe or directly from the user via the terminal. It only makes sense to use SedVi with textual input. The output can be sent to another file, the same file, to (another) pipe or directly displayed in the terminal. SedVi reads the input line by line into its line buffer. The lines in the buffer are modified by the script which the user provided when starting the program. When the script is finished the line buffer is sent to the output. Then the next line is read from the input and the script starts over again. This cycle is repeated until the last line of the input is processed.
SedVi can easily be combined with other command line tools to perform complex tasks.
Command line arguments
The command line arguments below are already supported in the current development version of SedVi. More options will likely be added soon.
© 2009, Dave van Soest