[CentOS] how to separate individual logs?
cybernet
cybernet2u at yahoo.comTue Nov 30 08:24:12 UTC 2010
- Previous message: [CentOS] how to separate individual logs?
- Next message: [CentOS] how to separate individual logs?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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 ________________________________ From: hadi motamedi <motamedi24 at gmail.com> To: CentOS mailing list <centos at centos.org> Sent: Tue, November 30, 2010 10:16:43 AM Subject: Re: [CentOS] how to separate individual logs? On 11/30/10, cybernet <cybernet2u at yahoo.com> wrote: > can you please tell what that command does ?:)) > > Sorry. Which command do you mean? _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20101130/fe1dd366/attachment-0001.html>
- Previous message: [CentOS] how to separate individual logs?
- Next message: [CentOS] how to separate individual logs?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list