提交 f8077c97 编写于 作者: K Khaled Hosny

Print only the failed log

上级 8e3b4c0e
#!/bin/bash
for f in $(find . -name '*.log' -not -name 'config.log'); do
echo '====' $f '===='
cat $f
if [[ $(tail -1 $f) = FAIL* ]]; then
echo '====' $f '===='
cat $f
fi
done
# Intentionally exiting with non-zero.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册