jpuritz / dDocent

a bash pipeline for RAD sequencing
ddocent.com
MIT License
53 stars 41 forks source link

too many arguments for ls and rm #83

Open pdimens opened 1 year ago

pdimens commented 1 year ago

I haven't experienced this directly, but was contacted by someone using dDocent on a lot of samples such that calls to ls piped into other things created errors where the message said there were too many arguments for ls. This also occurred towards the end of the pipeline where things like rm mapped.*.bed were occurring.

solution

  1. Replace all calls to ls with calls to find
  2. replace instances of rm ... with find . -name ... | rm or similar