Thursday 24 November 2011

unix - How do you handle the "Too many files" problem when working in Bash? - Stack Overflow

http://stackoverflow.com/questions/186099/how-do-you-handle-the-too-many-files-problem-when-working-in-bash

I used to encounter this problem alot when I thought it was a better idea to split fasta files individually and keeping a blast report separate for each file (Sanger Seq era ... ) revisited this problem when a friend asked for help ... 


In short

  find . -print0 | xargs -0 grep -H foo
  or 
  
  find ../path -exec grep foo '{}' '+'

No comments:

Post a Comment

Datanami, Woe be me