Discussion: pattern match
Afficher un message
Vieux 18/08/2006, 04h15   #2
Xicheng Jia
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: pattern match

tim_batiees@hotmail.com wrote:
> If I want to gather any error, warnings in /var/adm/messages.
> How to use korn shell to do that?
>
> As if I use "grep -i error /var/adm/messages" , then for "warning" , I
> have to do "grep -i warning /var/adm/messages", that means I have to do
> twice. How can I do it once to patten match two or more words?


grep -iF 'warning
error' /var/adm/messages

Xicheng

  Réponse avec citation
 
Page generated in 0,04657 seconds with 9 queries