There is a text file with 1,000,000 lines of code floating around and Ctrl+F isn’t doing the job… What are my alternatives for quickly searching?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From Linux
cat code.txt | grep -on “pattern“
Used python to generate a file with 1,000,000 lines, each containing a random 70 characters long string.
Then search for the pattern ABC, there were 3175 matches. It took 2.6 secs