Recursive grep
This tip is for grepping a pattern even in the sub-directories of a particular directory in addition to the files in the current directory.
Since grep -R <> <> is not available on all flavors, this can be really helpful.
The command is as follows :-
find
The arguments are self-explanatory.
The output of find will be xarg‘ed to the input of grep
and these will be searched for searchstring.






Add New Comment
Viewing 7 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment