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

Re: emacs guy needs vi hack



On Mon, Jul 09, 2001 at 07:42:45AM -0700, Robert Threet wrote:
> Arrrgh!  I removed emacs (due to drive space and
> because I use pico most of the time) and now I need to
> delete the first 7974 lines of an 11,526 line file
> (boy, is my finger tired).  I have a unique word on
> line 7974...  I tried tail -n 3552 <file> but it
> didn't work.  Evidently, it can only go back so far...
>  I know you can do this in vi but if it takes me much
> longer to find out I may as well go back to hitting
> "dd dd dd dd...".  :-)

Move to the top line
type "d 7973 j" without the quotes and spaces
enjoy the power and memory savings of Vi

--Danny
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.