Results 1 to 6 of 6

Thread: Full Text Search

  1. #1
    Join Date
    Oct 2009
    Location
    Tucson, AZ
    Beans
    782
    Distro
    Ubuntu 10.10 Maverick Meerkat

    [SOLVED] Full Text Search

    What's the easiest way to search for a string in a text file in GNOME or on the console? I used to do this in kfindfile back on KDE.

    I'd like to avoid downloading something like desktop search if at all possible because I'm away for the holidays and stuck on a dialup connection.

    Thanks guys!
    Last edited by PatchesTheCaveman; January 3rd, 2011 at 09:30 AM.

  2. #2
    Join Date
    Dec 2009
    Beans
    184
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Full Text Search

    grep is the greatest once you master it.

  3. #3
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Full Text Search

    This involves downloading a plugin for Gedit but it's pretty handy.
    See here: http://ubuntuforums.org/showpost.php?p=10248575&postcount=3

  4. #4
    Join Date
    Oct 2009
    Location
    Tucson, AZ
    Beans
    782
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Full Text Search

    Quote Originally Posted by noah++ View Post
    grep is the greatest once you master it.
    How do you get it to search a whole folder of files including its subfolders, though? And tell you which file it was in? Can it even do that?

    It's great when you're working with one file. I use it to filter output from commands all the time.

  5. #5
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Full Text Search

    Does
    Code:
     grep -r "<string>" /directory/to/look_in
    work?

  6. #6
    Join Date
    Oct 2009
    Location
    Tucson, AZ
    Beans
    782
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Full Text Search

    Wow. Yes it does! I looked through the command reference noah++ linked to and didn't see that either. Guess I should RTFM more carefully.

    But, I already tried your other solution and that accomplished what I needed. So, score two points for stinkeye tonight!

    Thank you all very much.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •