grep-commit
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]