GNU bug report logs -
#30058
Fw: centos6.5 problems
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30058 in the body.
You can then email your comments to 30058 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#30058
; Package
coreutils
.
(Wed, 10 Jan 2018 05:06:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"yu.wu <at> kuanrf.com" <yu.wu <at> kuanrf.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 10 Jan 2018 05:06:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
yu.wu <at> kuanrf.com
From: yu.wu <at> kuanrf.com
Date: 2018-01-10 12:02
To: brennan
Subject: centos6.5 problems
hello
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 like below
#!/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 <at> 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 ?
i hope you can reply
yu.wu <at> kuanrf.com
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#30058
; Package
coreutils
.
(Thu, 11 Jan 2018 23:14:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 30058 <at> debbugs.gnu.org (full text, mbox):
tag 30058 notabug
close 30058
stop
On 01/10/2018 05:22 AM, yu.wu <at> 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 <at> 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
Added tag(s) notabug.
Request was from
Bernhard Voelker <mail <at> bernhard-voelker.de>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Jan 2018 23:14:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
30058 <at> debbugs.gnu.org and "yu.wu <at> kuanrf.com" <yu.wu <at> kuanrf.com>
Request was from
Bernhard Voelker <mail <at> bernhard-voelker.de>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Jan 2018 23:14:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 09 Feb 2018 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 133 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.