Alan Cole
04-16-2001, 06:29 PM
I'm sure there is a way to do this, but I'm not having luck finding it on my own. I'm hoping some vi guru out there can help me out...
As you prolly know you can delete large numbers of lines from files with ## dd - (100 dd will delete 100 lines from cursor onward)
What I need to do is be able to go to a place in the file and find the line number I'm currently at... that way I can return to the begining of the file and delete that many lines forward -- thereby deleting all the lines from begining to that point I was at.
So, my main question is - how do I get vi to tell me what line number the cursor is at?
Thanks for any help on this
Alan
As you prolly know you can delete large numbers of lines from files with ## dd - (100 dd will delete 100 lines from cursor onward)
What I need to do is be able to go to a place in the file and find the line number I'm currently at... that way I can return to the begining of the file and delete that many lines forward -- thereby deleting all the lines from begining to that point I was at.
So, my main question is - how do I get vi to tell me what line number the cursor is at?
Thanks for any help on this
Alan