View Single Post
Old Jun 10th, 2005, 12:52 PM   #3
Riddle
Programmer
 
Riddle's Avatar
 
Join Date: May 2005
Location: Nar Shaddaa
Posts: 42
Rep Power: 0 Riddle is on a distinguished road
Send a message via ICQ to Riddle Send a message via AIM to Riddle Send a message via MSN to Riddle
Assuming you're on *nix, though.

lol, and here's the help I forgot to add (if you're using Windows):

You can use the find command. Example, let's say that you're looking for the string lol!! in a file called lol.txt.
find "lol!!" lol.txt
If it's in there once, it would return this.

find "lol!!" lol.txt

---------- LOL.TXT
"lol!!"


Unfortunately, I don't know if you can use a 'greater than' operator in batch files (if you could, you could use the /c switch to show you the count of lines containing it (example: 2)). If you can find a way to use the greater than operator, go for it.

Last edited by Riddle; Jun 10th, 2005 at 12:57 PM.
Riddle is offline   Reply With Quote