Quote:
Originally Posted by rtmistler
Not to hi-jack the thread, this is actually related though. Can you, or someone explain why grep won't work with "*.xml" but does work fine with . (DOT), and actually * (STAR), but "*.*" or "*.xml" do not work. Meanwhile the find works fine.
|
The grep is told to recurse into directories... but the "*.xml" is not a directory.
In the context of the command
Code:
grep -Ri "num-samples" "*.xml" | wc -l
The search term is num-samples (where is should be num_samples), but the "*.xml" is interpreted to be the file to be searched (which most likely does not exist).