dDocent icon indicating copy to clipboard operation
dDocent copied to clipboard

too many arguments for ls and rm

Open pdimens opened this issue 2 years ago • 0 comments

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

pdimens avatar Oct 17 '22 20:10 pdimens