Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Lyriikka
Beginner


Joined: 02 Oct 2002
Posts: 21
Location: Finland

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Lyriikka
Beginner


Joined: 02 Oct 2002
Posts: 21
Location: Finland

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Nov 04, 2002 1:32 pm   
 
*shrug* Suggest it to Zugg and he might include it in a future version.

Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net