CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   grep -r inletOutlet (https://www.cfd-online.com/Forums/openfoam/76530-grep-r-inletoutlet.html)

smillion May 27, 2010 22:54

grep -r inletOutlet
 
Hey guys,

I'm trying to find all the case files where it uses the inletOutlet condition.

I've tried typing grep -r inletOutlet and ls | grep -r inletOutlet within my tutorials directory. Problem is it takes forever to search unless I'm doing something wrong.

Please help?

Chris Lucas May 28, 2010 03:10

Hi,

you can use the programm "docFetcher" you search all files

Regards,
Christian

chelvistero May 28, 2010 03:35

Hi,
try "grep -ir inletOutlet *" . I think that should work!

Regards, Axel

ngj May 28, 2010 04:05

Good morning

You could also try

find ./ -type d -name "0" | xargs grep -r inletOutlet

This is of course limited to the 0 time folder, however it should be more than sufficient in your case and it is fast.

Have fun

Niels

smillion May 28, 2010 09:47

Thanks for the help.

olesen May 31, 2010 06:21

Quote:

Originally Posted by smillion (Post 260596)
Hey guys,

I'm trying to find all the case files where it uses the inletOutlet condition.

I've tried typing grep -r inletOutlet and ls | grep -r inletOutlet within my tutorials directory. Problem is it takes forever to search unless I'm doing something wrong.

Please help?

If you are looking for examples from 1.6.x, this is quite fast:
Code:

git grep --cached inletOutlet


All times are GMT -4. The time now is 11:54.