Thursday, December 6, 2012

Unix grep to huge number of files

There are two methods to solve the problem:

For one thing,

we can still use the grep "xx" a* > c1;
                               grep "xx" b* > c2;

then merged the two files:

use cat c1 c2 >c

For another,

find . -name 'div*' -print | xargs grep "fgenesh2" >c.


 

No comments:

Post a Comment