[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] looking for a word in a log file ?
- Subject: RE: [cobalt-users] looking for a word in a log file ?
- From: "Jean-Christophe SPENLE" <cobalt@xxxxxxxxxx>
- Date: Thu Jul 18 03:56:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
thank you !
Amicalement
Jean-Christophe
-----Message d'origine-----
De : cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]De la part de Fragga
Envoyé : jeudi 18 juillet 2002 12:26
À : cobalt-users@xxxxxxxxxxxxxxx
Objet : Re: [cobalt-users] looking for a word in a log file ?
the command is grep
simple example ::
you have a file called log.txt
it contains the following words within it -
this is a cat
this is a dog
and this is a chicken
from command shell ::
to display on screen
$ grep dog log.txt
this is a dog
or to output results to a file
$ grep dog log.txt > foundit.txt
type `man grep` for more info.
fragga
----- Original Message -----
From: "Jean-Christophe SPENLE" <cobalt@xxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, July 18, 2002 5:13 AM
Subject: [cobalt-users] looking for a word in a log file ?
> Hi !
>
> Can someone give the command that I should write to get only the word I'm
> looking for in a file (like search in windows) ?
>
> Amicalement
> Jean-Christophe
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users