使用echo输出空行与空格到文件中 输出空行: echo " " >> temp (自动换行) 输出空格: echo -n " " >> temp (不换行) 使用echo插入换行符 echo $'\n' >>file