[英]What does an empty echo in bash script mean?
I have this script: 我有这个脚本:
if [ -n "$running_processes" ]
then echo
echo $service:
echo
echo "$running_processes"
echo
echo "lines: $(echo "$running_processes" | wc -l)"
echo
echo "=========="
fi
What does actually the echo with no string after that do? 之后没有字符串的回声实际上有什么作用?
From the info page: 从信息页面:
`echo' writes each given STRING to standard output, with a space between each and a newline after the last one. 'echo'将每个给定的STRING写入标准输出,每个与最后一行之后的换行符之间留一个空格。 Synopsis: 概要:
echo [OPTION]... [STRING]...
Since there are no strings that follow, the command will just print an empty line. 由于没有后续的字符串,因此该命令将只显示一个空行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.