[ale] Sed equivalent for vi command

Fletch fletch at phydeaux.org
Fri Dec 6 10:41:08 EST 2002


>>>>> "Dow" == Dow Hurst <dhurst at kennesaw.edu> writes:

    Dow> If in vi I issue: :23,23+20 d

[...]

Not sed, but:


perl -lne 'print unless 23..43'


Or more generically:


perl -lne 'BEGIN{($s,$e)=(shift,shift);$e+=$s}print unless$.==$s..$.==$e' 23 20


-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 294-0820 (m)      |  scary questions." -- Jules                =(___)=
                      |                                               U
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list