GNU bug report logs - #30058
Fw: centos6.5 problems

Previous Next

Package: coreutils;

Reported by: "yu.wu <at> kuanrf.com" <yu.wu <at> kuanrf.com>

Date: Wed, 10 Jan 2018 05:06:02 UTC

Severity: normal

Tags: notabug

Done: Bernhard Voelker <mail <at> bernhard-voelker.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "yu.wu <at> kuanrf.com" <yu.wu <at> kuanrf.com>
To: 30058 <at> debbugs.gnu.org
Subject: bug#30058: Fw: centos6.5 problems
Date: Wed, 10 Jan 2018 12:22:15 +0800
[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)]

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.