[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep using the recursive option
From: |
worthspending |
Subject: |
grep using the recursive option |
Date: |
Tue, 6 Mar 2012 16:31:03 -0600 |
The following work as expected.
# search everything in the current directory
grep index *
# search all files with an .rb extension
grep index *.rb
# search everything in the current directory and recursively through sub-directories
grep -r index *
# this one does not work
grep -r index *.rb
I can only seem to get the -r option to work if I use * for everything.
I don't understand.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep using the recursive option,
worthspending <=