问答详情
源自:2-3 Shell日志分析之分析日志中HTTP状态码为404、500的请求条数

为什么不换行呢

http://img.mukewang.com/5aa894a700017ff804630117.jpg

相关代码:

echo -e '\E[32m' "The number of http status[100+] :" ${Resettem} ${Http_status_codes[0]}

echo -e '\E[32m' "The number of http status[100+] :" ${Resettem} ${Http_status_codes[1]}

echo -e '\E[32m' "The number of http status[100+] :" ${Resettem} ${Http_status_codes[2]}

echo -e '\E[32m' "The number of http status[100+] :" ${Resettem} ${Http_status_codes[3]}

echo -e '\E[32m' "The number of http status[100+] :" ${Resettem} ${Http_status_codes[4]}

echo -e '\E[32m' "All request numbers :" ${Resettem} ${Http_status_codes[5]}


提问者:dear人格 2018-03-14 11:19

个回答

  • 慕盖茨9401531
    2018-04-05 15:05:16

    没有添加换行符\n