|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Answer: how can i search a text file for a string and print every occurence of that string |
| ( #167301=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > strings > how can i search a text file for a string and print every occurence of that string contributed by munchie
Here's a less compicated way to do it.
However with this will not pick up a match that occurs over multiple lines, and it also is not very fast when munging through huge files.
|
|
||||||||||||||||||