linux下判断文件中是否包含字符串

grep -wq "hello world" a.txt && echo "contain"||echo "not contain"spa 说明:grep -w 全匹配某一列co -q 不打印信息
相关文章
相关标签/搜索