Command howto
Michael Magua
mmglug at gmail.com
Wed Oct 8 06:09:44 UTC 2008
On Tue, Oct 7, 2008 at 8:25 PM, Jim <mickeyboa at sbcglobal.net> wrote:
> Thomas Thurman wrote:
>
>> 2008/10/7 Jim <mickeyboa at sbcglobal.net <mailto:mickeyboa at sbcglobal.net>>
>>
>>
>> What command can I use to get all the lines in /var/log/messages
>> that have messages on "bluetoothd" copied into a file called
>> "mess" in /home/user/mess ??
>>
>>
>> grep bluetoothd /var/log/messages > /home/user/mess/mess
>>
>> assuming you have the rights to read messages and write to mess.
>>
>> T
>>
> Craig, Thomas thanks for your help.
>
> Jim
Can also be done using awk ;)
awk '{ if ($5 ~ /bluetoothd/) print}' /var/log/messages >
/home/user/mess/mess
--
Regards,
Michael Magua
RHCE 805008570430920
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081008/800c7dbf/attachment-0001.htm>
More information about the fedora-list
mailing list