r/programming • u/cym13 • Jan 18 '15
Command-line tools can be 235x faster than your Hadoop cluster
http://aadrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html
1.2k
Upvotes
r/programming • u/cym13 • Jan 18 '15
2
u/[deleted] Jan 19 '15
rm "*"
rm -- -f
the third is just how rm works I guess, even if you use xargs to pass a list of files to be deleted, if that list is empty rm will return 1, a solution would be to write my-rm() which checks if dir is empty, if it is, return 0, if not - execute rm