Re: how to separate individual logs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



can you please tell what that command does ?:))


From: hadi motamedi <motamedi24@xxxxxxxxx>
To: CentOS mailing list <centos@xxxxxxxxxx>
Sent: Tue, November 30, 2010 6:52:30 AM
Subject: Re: how to separate individual logs?

On 11/29/10, John Doe <jdmls@xxxxxxxxx> 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
>  else
>    echo "$LINE" >> $LOGFILE
>  fi
> done
>
> JD
>
Thank you very much for your help. I tried for your code but I am
receiving the following error:
-bash:[1:command not found
-bash:$LOGFILE:ambiguous redirect
Can you please correct me?
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux