[CentOS] how to separate individual logs?
cybernet2u at yahoo.com
Tue Nov 30 03:09:05 EST 2010
can you please tell what that command does ?:))
From: hadi motamedi <motamedi24 at gmail.com>
To: CentOS mailing list <centos at centos.org>
Sent: Tue, November 30, 2010 6:52:30 AM
Subject: Re: [CentOS] how to separate individual logs?
On 11/29/10, John Doe <jdmls at yahoo.com> wrote:
> Here is "The Power of CentOS"!!! (in approximately 3 minutes...)
> cat edit.txt | while read LINE; do
> echo "$LINE" | grep -q '>\.\.'
> if [ $? -eq 0 ]; then
> LOGFILE=`echo $LINE | cut -d' ' -f1`.log
> echo "$LINE" >> $LOGFILE
Thank you very much for your help. I tried for your code but I am
receiving the following error:
-bash:[1:command not found
Can you please correct me?
CentOS mailing list
CentOS at centos.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentOS