Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8557463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:34:42+00:00 2026-06-11T15:34:42+00:00

I am going to be working with Grep for looking into a very large

  • 0

I am going to be working with Grep for looking into a very large dataset. Pretty much a lot of logs. I am not sure is it better to grep it once using some sometimes crazy complex regex, or try to do a few simple grep calls and return a smaller and smaller dataset each time. I am not the best at regex but I will be able to store the regex I would need in the log searching tool, I am just looking for which method could be best.

Edit:

Sorry I forgot to add in that info it was in my last post for a different grep question. The files are logs, They could be small or large the one i am testing with is 1.9gb so far So i think that is a pretty decent size to think about, the thing is the logs will start of small and then they will grow and the logs will roate at some point lets say everyday, but If i am doing like my Apache access logs and I grep for how often the home page was loaded, or grep for the page load times so i can make an average.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:34:43+00:00Added an answer on June 11, 2026 at 3:34 pm

    As your dataset is quite large, it would be preferable to invoke grep only once with the right regex. This would avoid excessive IO overhead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going to be working with regular expression's a lot in a new project,
This is a weird problem and I'm not sure what's going on. I installed
I'm going to be working with a C++ library written in plain C++ (not
we are going to be working with an old database. so it is very
I am going to start working on a website that has already been built
I am going to be working on a project that will heavily involve indexing
I'm going to start working on project developed in ASP.NET. In this project I
So working on getting my eclipse IDE going so I can develop my arduino
I am working on an iOS app which is going to handle many documents
I am working on a Wordpress blog where there is going to be an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.