[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: "Fragga" <fragga@xxxxxxxxxxxx>
- Date: Thu Jul 18 03:35:00 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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
>