Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Thank you! I know nothing about perl, so could you please clarify where I have to paste the path to my text file directory (the one to be searched)? Commented Jan 31, 2017 at 18:19
  • @ViolaW, that's searching in the current directory (the "." argument to find()). The strings to search are found in files passed as arguments (like that /path/to/string.txt or standard input if no file is given), as per the processing done upon -n Commented Jan 31, 2017 at 21:53
  • thank you for explaining this. somehow it's still not working on my machine. Actually I was asked not to pursue this problem any further. I appreciate everyone's help; unfortunately I can't make any of the solutions work (might be my own/ machine's problem); so I'm not sure whether I should somehow close this question? Commented Jan 31, 2017 at 23:48
  • 1
    @ViolaW, no need to close the question. Incidentally, based on the notes on your profile page, you would do extremely well to learn some Perl. (The backronym for Perl is "Practical Extraction and Reporting Language," and it's unparalleled for text processing capabilities.) Commented Feb 1, 2017 at 10:25
  • @Wildcard yes you're right, I have been told this before; it will be next on my list then :) Commented Feb 1, 2017 at 10:36