SedVi - a powerful command line stream editor inspired by vi

Tips and tricks

SedVi usage examples

The following SedVi command combined with 'wc' counts the number of empty lines in the input:

sedvi -N ':s/\s//g' '$Q:w' | wc

To format the input in html, use this command: (Note that a lot of improvements on this are possible, but this just shows the basic potential of SedVi.)

sedvi ':s/</&lt;/g' ':s/>/&gt;/g' 'I<p>' 'A</p>' -si 'i<html>' -sf 'i</html>'

© 2009, Dave van Soest