|
Lyriikka Beginner
Joined: 02 Oct 2002 Posts: 21 Location: Finland
|
Posted: Mon Nov 04, 2002 8:51 am
line number of a certain text in a file ? |
When you search for certain text from a text file, can #type, %grep or any other way be used to print the line number, instead of the whole content of the line?
Lyriikka the GenTnLadyLover |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Nov 04, 2002 1:23 pm |
Loop through the file. When you find what you are searching for, the current iteration number is the line number.
Kjata |
|
|
|
Lyriikka Beginner
Joined: 02 Oct 2002 Posts: 21 Location: Finland
|
Posted: Mon Nov 04, 2002 1:30 pm |
Yea, there are ways to do this. Wonder why zMUD doesn't have this builtin?
Lyriikka the GenTnLadyLover |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Nov 04, 2002 1:32 pm |
*shrug* Suggest it to Zugg and he might include it in a future version.
Kjata |
|
|
|
|
|