I use GOW tool kit on windows which contains many linux tools
I found that if the current directory contains several directories and many files (much greater than 1000), If I run
gfind . | xargs rm
it will was me
xargs: rm: No such file or directory
However if I run
gfind . | tail -100 | xargs rm
then it has no problem!
According to this link
Sometimes the list of arguments piped to xargs would cause the resulting command line to exceed the maximum length allowed by the system ... In order to avoid hitting the system limit, xargs has its own limit to the maximum length of the resulting command. If the supplied arguments would cause the invoked command to exceed this built in limit, xargs will split the input and invoke the command repeatedly.
So I guess the GNU version of xargs has no splitting and repeating feature, am I right? Is there any workaround of this?
- - , .
.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 305
تاريخ: شنبه
26 تير
1395 ساعت: 13:24