On 11/29/10, John Doe <jd...@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 > 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@centos.org http://lists.centos.org/mailman/listinfo/centos
- [CentOS] how to separate individual logs? hadi motamedi
- Re: [CentOS] how to separate individual logs? Fajar Priyanto
- Re: [CentOS] how to separate individual logs? John Doe
- Re: [CentOS] how to separate individual logs? Raj kumar
- Re: [CentOS] how to separate individual logs? hadi motamedi
- Re: [CentOS] how to separate individual logs? cybernet
- Re: [CentOS] how to separate individual lo... hadi motamedi
- Re: [CentOS] how to separate individu... cybernet
- Re: [CentOS] how to separate indi... hadi motamedi
- Re: [CentOS] how to separate ... Tony Schreiner
- Re: [CentOS] how to separate ... hadi motamedi
- Re: [CentOS] how to separate individual logs? John Doe
- Re: [CentOS] how to separate individual lo... hadi motamedi
- Re: [CentOS] how to separate individu... John Doe
- Re: [CentOS] how to separate indi... hadi motamedi