[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Sed equivalent for vi command



>>>>> "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