a*****j 发帖数: 13 | 1 【 以下文字转载自 Linux 讨论区 】
【 原文由 AgehaDJ 所发表 】
for example,
if you want to find files that contain both "linux" and "unix",
so we should do it in shell
foreach(`grep -l "linux" *.*`)
grep "unix";
is it correct? or not?
or how should I do it? | u****s 发帖数: 2186 | 2 grep linux *.* |grep unix
【在 a*****j 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 【 原文由 AgehaDJ 所发表 】 : for example, : if you want to find files that contain both "linux" and "unix", : so we should do it in shell : foreach(`grep -l "linux" *.*`) : grep "unix"; : is it correct? or not? : or how should I do it?
|
|