> cat edit.txt | while read LINE; do
> echo "$LINE" | grep -q '>\.\.'
> if [ $? -eq 0 ]; then
> LOGFILE=`echo $LINE | cut -d' ' -f1`.log
> else
> echo "$LINE" >> $LOGFILE
> fi
> done
> echo "$LINE" | grep -q '>\.\.'
> if [ $? -eq 0 ]; then
> LOGFILE=`echo $LINE | cut -d' ' -f1`.log
> else
> echo "$LINE" >> $LOGFILE
> fi
> done
From: hadi motamedi <motamedi24@xxxxxxxxx>
To: CentOS mailing list <centos@xxxxxxxxxx>
Sent: Tue, November 30, 2010 10:16:43 AM
Subject: Re: how to separate individual logs?
On 11/30/10, cybernet <cybernet2u@xxxxxxxxx> wrote:
> can you please tell what that command does ?:))
>
>
Sorry. Which command do you mean?
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos