Code:
$ seq 1 110548 | sed 's/^/ncaaplaybook.part./' | xargs touch
$ time bash -c 'find ~ -name "ncaaplaybook.part.*" | xargs -n 100 rm'
real 1m18.067s
user 0m0.772s
sys 0m5.012s
Code:
$ seq 1 110548 | sed 's/^/ncaaplaybook.part./' | xargs touch
$ time bash -c 'find ~ -name "ncaaplaybook.part.*" | xargs rm'
real 1m14.515s
user 0m0.376s
sys 0m3.620s
Code:
$ seq 1 110548 | sed 's/^/ncaaplaybook.part./' | xargs touch
$ time bash -c 'ls ncaaplaybook.part.* | xargs rm'
bash: /bin/ls: Argument list too long
rm: missing operand
Try `rm --help' for more information.
real 0m7.987s
user 0m3.664s
sys 0m0.284s
So it seems globbing doesn't work for this many arguments.
Bookmarks