Shell 判断文件中是否存在字符串 Posted on 01.01.2020 in shell • 13 words • 1 minute read if cat xxx.yml | grep "content">/dev/null then return 1 else return 0 fi