AI, Computational Biology, Population Genetics

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.


 
Posted by The Evolving Scientist at 4:06 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
View mobile version
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2026 (3)
    • ►  June (2)
    • ►  April (1)
  • ►  2022 (1)
    • ►  October (1)
  • ►  2017 (1)
    • ►  June (1)
  • ►  2016 (1)
    • ►  December (1)
  • ►  2015 (7)
    • ►  August (1)
    • ►  July (2)
    • ►  May (2)
    • ►  March (2)
  • ►  2014 (5)
    • ►  October (3)
    • ►  April (1)
    • ►  January (1)
  • ►  2013 (20)
    • ►  November (2)
    • ►  July (1)
    • ►  June (2)
    • ►  May (5)
    • ►  April (4)
    • ►  March (4)
    • ►  February (2)
  • ▼  2012 (17)
    • ▼  December (10)
      • heatmap
      • Python: sort a list and change another one consequ...
      • python_course
      • how to get the IDLE in mac
      • python3_learning_1
      • draw a fig with R
      • locator() function in R
      • Save R Plot in EPS format
      • Unix grep to huge number of files
      • 1down vote
    • ►  November (7)

About Me

The Evolving Scientist
View my complete profile
Awesome Inc. theme. Theme images by molotovcoketail. Powered by Blogger.