On Tue, Oct 7, 2008 at 8:25 PM, Jim <[EMAIL PROTECTED]> wrote:

> Thomas Thurman wrote:
>
>> 2008/10/7 Jim <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>>
>>
>>    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
-- 
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Reply via email to