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 8642417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:46:16+00:00 2026-06-12T11:46:16+00:00

I want to be able to do something like this quickly: I have a

  • 0

I want to be able to do something like this quickly:

I have a MySQL database table with visitors to my site. The columns are date, IP address, browser, URL, referer.

I want to do this:

  1. grab all the rows during a particular day
  2. delete all rows, making sure that in each 15-minute interval, no two rows have the same IP address

Is sed/awk suitable for these kinds of problems? Or would some scripting language such as Ruby be more appropriate?

I don’t quite “get” what sed/awk is actually for. Feel free to briefly explain that as well. Thank you!

  • 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-12T11:46:17+00:00Added an answer on June 12, 2026 at 11:46 am

    Sed and Awk are meant as text processing tools. Therefore, they can help in situations where your data is presented in a nice text format (generally equivalent to human-readable).

    An SQL database is generally stored in a binary format, for which these tools are not the best option. Even some formats that are human readable are better off with other tools (XML is probably the best example).

    If you could export your database as a CSV (comma separated value spreadsheet), you might have a better chance to process it with these tools.

    Otherwise, it’s way easier to use Perl/Python/Ruby with a suitable SQL module to access the data.

    Hope this helps =)

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

Sidebar

Related Questions

I want to be able to do something like this <test:TabControl id= runat=server....> <ItemTemplate>
I want to be able to do something like this SELECT `first_name` + +
I would want to be able to do something like this with a Dart
I want to be able to declare something like this: trait Narrowable[A] extends Iterable[A]
I want to be able to do something like this: $table_object->getRows()->where($wer)->or($or)->orderBy('field', 'DESC'); If i
I want to be able to do something like this: <uc:MyUC> <CustomContent> <span id=name>johnny
I want to be able to do something like this: var MyObject = function(prop)
Essentially, I want to be able to do something like this: struct Foo {
I want to be able to do something like this : //buildArgs XmlNode buildArgs
I want something like a canvas, but where i'd be able to manipulate pixels

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.