From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 10 00:05:38 2018 Received: (at submit) by debbugs.gnu.org; 10 Jan 2018 05:05:38 +0000 Received: from localhost ([127.0.0.1]:50192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ8a1-0006w5-JR for submit@debbugs.gnu.org; Wed, 10 Jan 2018 00:05:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ7uQ-0005x7-Fg for submit@debbugs.gnu.org; Tue, 09 Jan 2018 23:22:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ7uK-00082D-Ko for submit@debbugs.gnu.org; Tue, 09 Jan 2018 23:22:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_50,HTML_MESSAGE, MIME_BASE64_TEXT,UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZ7uK-000829-HP for submit@debbugs.gnu.org; Tue, 09 Jan 2018 23:22:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ7uJ-0000bN-B3 for bug-coreutils@gnu.org; Tue, 09 Jan 2018 23:22:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ7uG-0007tR-7e for bug-coreutils@gnu.org; Tue, 09 Jan 2018 23:22:31 -0500 Received: from mail139-154.mail.alibaba.com ([198.11.139.154]:57689) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZ7uF-0007id-QE for bug-coreutils@gnu.org; Tue, 09 Jan 2018 23:22:28 -0500 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.08988046|-1; CH=green; FP=13450527711215308706|1|1|1|0|-1|-1|-1; HT=e01e01534; MF=yu.wu@kuanrf.com; NM=1; PH=DS; RN=1; RT=1; SR=0; TI=SMTPD_---.ABWXE.._1515558133; Received: from ddkxiaobai-PC(mailfrom:yu.wu@kuanrf.com fp:125.80.128.176) by smtp.aliyun-inc.com(10.147.44.145); Wed, 10 Jan 2018 12:22:13 +0800 Date: Wed, 10 Jan 2018 12:22:15 +0800 From: "yu.wu@kuanrf.com" To: "bug-coreutils@gnu.org" Subject: Fw: centos6.5 problems X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7, 2, 8, 379[cn] Mime-Version: 1.0 Message-ID: <201801101222144924651@kuanrf.com> Content-Type: multipart/alternative; boundary="----=_001_NextPart535076007076_=----" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 10 Jan 2018 00:05:36 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) This is a multi-part message in MIME format. ------=_001_NextPart535076007076_=---- Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: base64 DQoNCg0KDQp5dS53dUBrdWFucmYuY29tDQogDQpGcm9tOiB5dS53dUBrdWFucmYuY29tDQpEYXRl OiAyMDE4LTAxLTEwIDEyOjAyDQpUbzogYnJlbm5hbg0KU3ViamVjdDogY2VudG9zNi41IHByb2Js ZW1zDQoNCmhlbGxvIA0KICAgICAgIEknbSBhIG5ldHdvcmsgZW5naW5lZXIgLCB3b3JrIG1vcmUg dGhhbiB0ZW4geWVhcnMuDQogICAgICBJIHVzZWQgY2VudG9zIHN5c3RlbSBtb3JlIHRoYW4gNyB5 ZWFycyANCiAgICAgc29tZWRheSAgaSB0cnkgdG8gd3JpdGUgc29tZSBzaGVsbCBzY3JpcHRzICxi dXQgaSBmb3VuZCBhIHByb2JsZW1zIA0KICAgICBzaGVsbCBzY3JpcHRzIGxpa2UgYmVsb3cNCiAg IA0KIyEvYmluL2Jhc2gNCmNkIC92YXIvbG9nDQojcm0gLXJmIDEudHh0DQp0aW1lPWBkYXRlIHxh d2sgeydwcmludCAkMiwiIiwkMyd9YA0KI3RpbWU9YGRhdGUgfGF3ayB7J3ByaW50ICQyLCQzJ31g DQpjYXQgL2Rldi9udWxsID4gMS50eHQNCmNhdCBzZWN1cmUgfCBncmVwIEZhaWwgfCBncmVwICIk dGltZSIgPiAxLnR4dA0KY2F0IDEudHh0IHwgbWFpbCAtcyAiNDcuMTA0LjEzLjEiIHl1Lnd1QGt1 YW5yZi5jb20gDQoNCnRoZSBjb21tYW5kICJkYXRlIHwgYXdrIHsicHJpbnQgJDIsJDMifSAiICAN CndoZW4gdGhlIGRhdGUgZnJvbSAxIHRvIDkgICB0aGUgc2NyaXB0IHdhcyB3cml0ZSANCndoZW4g dGhlIGRhdGUgZnJvbSAxMCB0byAzMSAgdGhlIHByb2JsZW0gd2FzIHNob3cgDQoNCnRoZSBwcm9i bGVtIGlzIHRoZSBzcGFjZSANCnNvIHdvIHRyeSB0byBhZGQgYSBzcGFjZSBpbiBteSBzaGVsbCBz Y3JpcHQgDQoNCmlzIHRoaXMgYSBidWcgPw0KDQppIGhvcGUgeW91IGNhbiByZXBseQ0KDQoNCg0K eXUud3VAa3VhbnJmLmNvbQ0K ------=_001_NextPart535076007076_=---- Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0A

=0A

=0A
yu.wu@kuanrf.com
=0A
 
Date= : 2018-01-10 12:02
To: brennan
Subject: centos6= .5 problems
=0A

=0A
hello 
  &nbs= p;    I'm a network engineer , work more than ten years.
      I used centos system more than 7 years 
=
     someday  i try to write some shell scripts ,= but i found a problems 
     shell scripts l= ike below
   
#!/bin/bash
cd = /var/log
#rm -rf 1.txt
time=3D`date |awk {'print $2,""= ,$3'}`
#time=3D`date |awk {'print $2,$3'}`
cat /dev/nu= ll > 1.txt
cat secure | grep Fail | grep "$time" > 1.txt
cat 1.txt | mail -s "47.104.1= 3.1" yu.wu@kuanrf.co= m 

the command "date | awk {"print $2,$3"} "  
when the date from 1 to 9   the script was write 
=
when the date from 10 to 31  the problem was show 

the problem is the space 
so wo try to add= a space in my shell script 

is this a bug ?=

i hope you can reply


yu.wu@kuanrf.com
=0A
=0A ------=_001_NextPart535076007076_=------ From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 11 18:13:49 2018 Received: (at 30058) by debbugs.gnu.org; 11 Jan 2018 23:13:49 +0000 Received: from localhost ([127.0.0.1]:52665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZm2f-0006t3-D7 for submit@debbugs.gnu.org; Thu, 11 Jan 2018 18:13:49 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:56523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZm2c-0006sn-TW; Thu, 11 Jan 2018 18:13:47 -0500 Received: from [192.168.101.10] ([91.12.164.228]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LbrfA-1fGUih0grc-00jJQk; Fri, 12 Jan 2018 00:13:35 +0100 Subject: Re: bug#30058: Fw: centos6.5 problems To: "yu.wu@kuanrf.com" , 30058@debbugs.gnu.org References: <201801101222144924651@kuanrf.com> From: Bernhard Voelker Message-ID: <493cdb35-37cf-c5d2-ad86-e93ac3157973@bernhard-voelker.de> Date: Fri, 12 Jan 2018 00:13:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <201801101222144924651@kuanrf.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:hdH89sWyjYlym+ng9QoFSb5//BPOWz7NaAlRcIPxqonWPpzfsCI BRr7hQe0S5AiT14Pw3Z5XSCia0nhO9pS6OS8dkvKSFKsypRPhl2q+lq/ikkMA6bz8emGrHU 019CZSNWtLx2+VdOCf7uKZCWpw2Ijxg8GkYwo3oYb+//X6Y0eARApcABuob0HwdQceLxBoO /2mVa1A+hY73waEQd0azg== X-UI-Out-Filterresults: notjunk:1;V01:K0:J4HxMYV5hBk=:ISQhIGhjQeMbUckORRW51o x6IgortU0z8T0EWMqriTAXUHEXtB4k0O7OA/bzeepLMyOuVYWUQ5uYmsfwLojqUkWM5+G7UP8 nDO30TkV8K6ynXdj2S3CFYH7Db5zhKTil0S2vwdQJWdksQTNR6iGI1t4hHNyywfDNYAx/qPet KpjiaKEuoD76JPX5OLvzVzcPVfun5HI19oNdO/PRLBrAYSg5ZUURXXWzM3GAdFQmnIfCBFWoc 2dEtNUPb01gROl/Dueo6FOl3Zro8vSaV1W0iMmH7lHU9XXg0/gxm+w/3vo4N+IkMhzvepeaaN RbzKuwvj/jFwUFtHtTEUT7P6wn8EPLj29wiy7w5iS03nM2Qmk9X2cImbaqTGS8wFTYHBVaMpH TcDB2I4JNKZMrXn6bPUWDX3+TOf/LDRNWsuqUuQ0XUdwAd3fntDn/0S2IUx8WPwbnZtScoRuB XbwRYPlGq9II/rwf/bnKpPIM5pfO+b8j2y00l5au6RWSYDWF9EGA9gmnjDLbKpp1M9vaP5jOZ TdV+OKoW8dG/mwZgJz5G5OngJmS2a4LE3q712ydFHamOtFhUOteGVCwutMnUzI8ZNXz7BzhHi 7O5bxZafsNLos9PgEk3CTU/Jy/e3NlBXaD8ACgDiO0NymNdu5Fel17F5p7w6z8MRzuuDPYXKp +jQHwRO19VN06Hz33ntSbE2+tzfIDjTOWrwASWcfEPLfJIfTeGqjlkRsWyyTjU6EyN/o60XYL bHOpFIN1LGcrL1U/XsIdLu5Z5pJcvK8D8arAnP3KB/kmzZopfQ0774O4KnE= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30058 Cc: GNU bug control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tag 30058 notabug close 30058 stop On 01/10/2018 05:22 AM, yu.wu@kuanrf.com wrote: > #!/bin/bash > cd /var/log > #rm -rf 1.txt > time=`date |awk {'print $2,"",$3'}` > #time=`date |awk {'print $2,$3'}` > cat /dev/null > 1.txt > cat secure | grep Fail | grep "$time" > 1.txt > cat 1.txt | mail -s "47.104.13.1" yu.wu@kuanrf.com > > the command "date | awk {"print $2,$3"} " > when the date from 1 to 9 the script was write > when the date from 10 to 31 the problem was show > > the problem is the space > so wo try to add a space in my shell script > > is this a bug ? Thanks for the report, however I feel that this question is more about shell scripting in general rather than about an issue in a particular GNU coreutils program. I do not have a CentOS system here, and I don't know the format being used in your /var/log/secure file. You didn't provide any input or output data, so it's hard to guess what happened. Well, you reached the GNU coreutils mailing list, and the tools involved in the scripts above are 'date' and 'cat', but there's no proof what you think went wrong (the actual output) or what you expected as output. Thus, I'm closing this issue as 'notabug' in our bug tracker; of course, you may continue the discussion, and we may reopen the issue if needed. Have a nice day, Berny From unknown Sat Jun 21 03:31:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Feb 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator