Results 1 to 3 of 3

Thread: Grep and recursive on multiple files (no results)

  1. #1
    Join Date
    Dec 2005
    Beans
    Hidden!
    Distro
    Kubuntu

    Grep and recursive on multiple files (no results)

    When I use kfind recursively looking for "remember" on all .TXT files , I get many results (expected). But when I use grep, no results ??

    Code:
    grep -i -r 'remember'  *.txt
    I have also tried -R but still no results. Obviously something dumb I'm doing

  2. #2
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Grep and recursive on multiple files (no results)

    I guess instead of using *.txt use the option
    Code:
     --include="*.txt"

  3. #3
    Join Date
    Dec 2005
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grep and recursive on multiple files (no results)

    Quote Originally Posted by mc4man View Post
    I guess instead of using *.txt use the option
    Code:
     --include="*.txt"
    Thanks muchly, that worked fine ..

    Code:
    grep -i -R 'remember' --include="*.txt"

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
  •