Thanos.sh随机删除一半文件,助你成为装逼大神

原文链接: https://github.com/hotvulcan/Thanos.sh
#!/bin/sh
let "i=`find . -type f | wc -l`/2";
if [[ uname=="Darwin" ]]; then
    find . -not -name "Thanos.sh" -type f -print0 | shuf -z -n $i | xargs -0  -- cat;
else
    find . -not -name "Thanos.sh" -type f -print0 | shuf -z -n $i | xargs -0  -- cat;
fi

以上为灭霸代码,随机删除一半文件

@转载于Github----Thanos项目

你可能感兴趣的:(thanos,shell,Shell编程,Linux)