Linux shell script uses echo to output blank lines and spaces

Use echo to output blank lines and spaces to a file

Output empty lines:

echo " " >> temp (automatic line wrapping)


Output spaces:

echo -n " ​​" >> temp (without newline)

Insert newline character 

echo $'\n' >>file

Guess you like

Origin blog.csdn.net/qq_35902025/article/details/129974263