1 Star 0 Fork 0

AxYiXiao/OneLifeData7

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
printNonContaiableObjects.sh 651 Bytes
一键复制 编辑 原始数据 按行查看 历史
for f in `ls -v objects/*`; do
if [[ $f == objects/*.txt ]] && ! [[ $f == objects/nextObjectNumber.txt ]];
then
name=$(cat $f | sed -n 2p );
containSize=$(cat $f | sed -n 4p );
permanent=$(cat $f | sed -n 5p );
while read -r line
do
if [[ $line == containable* ]];
then
cont=$(echo $line | grep -o -E '[01]' | head -1 );
size=$(echo $containSize | grep -o -E '[0-9]' | head -1 );
perm=$(echo $permanent | grep -o -E '[01]' | head -1 );
if (( $(bc <<< "$cont == 0") )) && (( $(bc <<< "$perm == 0") )) && ! [[ $name == *Female* ]] && ! [[ $name == *Male* ]] && ! [[ $name == *@* ]]
then
echo -e "$name\n"
fi
break
fi
done < $f
fi
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/axyixiao/OneLifeData7.git
git@gitee.com:axyixiao/OneLifeData7.git
axyixiao
OneLifeData7
OneLifeData7
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385