【shell】判斷文件中是否存在字符串

message="failed"spa if cat console.log | grep "$message">/dev/nullconsole thengrep return 1co elsereturn return 0message fi
相關文章
相關標籤/搜索