In linux and unix, find command is very powerful command
the reasons are (from my opinions)
1. in linux, unix, every configurations are done in text
2. if you know some strings, you may want to find a file containing those strings
3. this will be extremely helpful when you work with linux system

$find . -exec grep “stringyouwanttofind” ‘{}’ \; -print

\; represents the end of argument of exec

{ } inserts each file

$find . -name “filenameyouwanttofind” -print

$ find . -name “*.py” -exec grep “stringyouwanttofind”  ‘{}’ \; -print

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer