Unix 在txt输出HP-UX中插入空白
我需要在hp ux脚本中插入空格行,这将生成文本输出。 在该文本文件中,我将附加2个其他文本文件,并希望在输入之间留有空格 我有test、test1和test2,并使用cat将test1和test2的内容附加到test中 你能告诉我什么能帮我吗?我试过echo,但运气不好Unix 在txt输出HP-UX中插入空白,unix,echo,hp-ux,Unix,Echo,Hp Ux,我需要在hp ux脚本中插入空格行,这将生成文本输出。 在该文本文件中,我将附加2个其他文本文件,并希望在输入之间留有空格 我有test、test1和test2,并使用cat将test1和test2的内容附加到test中 你能告诉我什么能帮我吗?我试过echo,但运气不好 cat /home/cmorban/test1.txt >> /home/cmorban/test.txt cat /home/cmorban/test2.txt >> /home/cmorban/te
cat /home/cmorban/test1.txt >> /home/cmorban/test.txt
cat /home/cmorban/test2.txt >> /home/cmorban/test.txt
谢谢 这可以通过文件写入命令之间的“echo”来完成。因此,代码如下所示
cat /home/cmorban/test1.txt >> /home/cmorban/test.txt
echo "" >> /home/cmorban/test.txt
cat /home/cmorban/test2.txt >> /home/cmorban/test.txt
echo”“
不适合你吗?嗨,尼尔……刚刚找到并回答……谢谢你的提问。我是unix世界的新手:)看来这就可以了:echo>>/home/cmorban/test.txt;cat/home/cmorban/gbs.txt>>/home/cmorban/test.txtCiprian如果适合您,请将答案标记为已接受。。。