[FZH] bash中如何测试子字符串?

Chen Lei supercyper在163.com
星期一 四月 19 16:33:12 UTC 2010


echo $VAR|grep -q kde




在2010-04-20 00:26:37,"LI Rui Bin" <cheeseli在hotmail.com> 写道:
>我要在bash里测试一个字符串是否包含某个子串,该怎么写?比如测试 $VAR 中是 
>否含有 "kde" 字样
>_______________________________________________
>Chinese mailing list
>Chinese at lists.fedoraproject.org
>https://admin.fedoraproject.org/mailman/listinfo/chinese


关于邮件列表 Chinese 的更多信息