<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:8pt"><div>can you please tell what that command does ?:))</div><div style="font-family:verdana, helvetica, sans-serif;font-size:8pt"><br><div style="font-family:verdana, helvetica, sans-serif;font-size:8pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> hadi motamedi <motamedi24@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> CentOS mailing list <centos@centos.org><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 30, 2010 6:52:30 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [CentOS] how to separate individual logs?<br></font><br>On 11/29/10, John Doe <<a ymailto="mailto:jdmls@yahoo.com" href="mailto:jdmls@yahoo.com">jdmls@yahoo.com</a>> wrote:<br>> Here is "The Power of
CentOS"!!! (in approximately 3 minutes...)<br>><br>> cat edit.txt | while read LINE; do<br>> echo "$LINE" | grep -q '>\.\.'<br>> if [ $? -eq 0 ]; then<br>> LOGFILE=`echo $LINE | cut -d' ' -f1`.log<br>> else<br>> echo "$LINE" >> $LOGFILE<br>> fi<br>> done<br>><br>> JD<br>><br>Thank you very much for your help. I tried for your code but I am<br>receiving the following error:<br>-bash:[1:command not found<br>-bash:$LOGFILE:ambiguous redirect<br>Can you please correct me?<br>_______________________________________________<br>CentOS mailing list<br><a ymailto="mailto:CentOS@centos.org" href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br></div></div><div style="position:fixed"></div>
</div><br>
</body></html>