标签:文件 ar linux amp file 字符串 c shell
grep -q "str" urfile &&
{
echo "找到了"
} ||
{
echo "没找到"
}
linux在文件中查找指定字符串,然后根据查找结果来做进一步的处理,布布扣,bubuko.com
linux在文件中查找指定字符串,然后根据查找结果来做进一步的处理
标签:文件 ar linux amp file 字符串 c shell
原文地址:http://my.oschina.net/donhui/blog/297201