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

  • Home
  • SEARCH
  • 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 8885193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:14:55+00:00 2026-06-14T21:14:55+00:00

Previously, I’ve looked up and down the web and haven’t found much information on

  • 0

Previously, I’ve looked up and down the web and haven’t found much information on this topic. I’m looking to implement some ruby code that will scan my hard drive for particular information (telephone numbers for example). I’ve already built several regexs to find what I’m looking for; however, I’m unsure what the core logic to implement them would look like. Any suggestions?

  • 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-14T21:14:56+00:00Added an answer on June 14, 2026 at 9:14 pm

    You should walk the filesystem, recursing for directories, and applying your routine to every file. I’d just use a combination of the find command, starting from your filesystem root, and handing your routine every file. I don’t know how one would use pure ruby to do it, but I look forward to others offering their nuggets of wisdom.

    Since you’re using ruby, here’s some (untested) code I found:

    require ’rubygems’
    require ’alib’ 
    
    count = 0
    alib.util.find2 ‘/’ do |entry, stat|
       count += 1 if stat.file?
    end
    

    It would appear you need the alib gem to run this, let me know how it works out.

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

Sidebar

Related Questions

Previously I did a Tutorial on OpenGL-ES 1.0. For reference, this can be found
Previously I was using the class found here to convert userID to some random
Previously, I was passing information to a Silverlight control inside of the Page_Load method.
Previously I've been looking at existing code to display a map in a tab,
Previously I have always seen example of use of properties and iVars like this...
Previously I had been using this.CommandBindings.Add( new CommandBinding(ApplicationCommands.Copy, this.cmdCopy_Executed, this.cmdCopy_CanExecute)) where cmdCopy_Executed is a
Previously I haven't got such a problem with Rails 2.3.2 installation. Somebody have any
Previously i was able to download YouTube videos as mp3 via youtube-mp3.org Using this
Previously I had: MyClass::MyClass() : myMember(VALUE,this,5,etc.) { ... } but I need to do
Previously, to save the settings of some applications, I used: A TSettings = class(TPersistent)

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.