HOW TO recursive grep in unixThis is a featured page

Platform: Unix App:
Tool:
DB Ver:
App Ver:
Tool Ver:
Revision Date: 27-Oct-2005 Keywords: HOWTO, UNIX, GREP, FIND, RECURSIVE

Goal
To search the contents of files in the current directory and all sub-directories for a particular expression.

Facts


Solution
From the unix prompt, go to the directory where the search should begin. Then use the following unix command to search the files:

find . -type f -print | xargs grep <expression>




consultium
consultium
Latest page update: made by consultium , Oct 6 2009, 9:31 PM EDT (about this update About This Update consultium Edited by consultium

1 word added
1 word deleted

view changes

- complete history)
Keyword tags: FIND GREP HOWTO RECURSIVE UNIX
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.