我希望编写一个简短的bash脚本,它使用awk来调整三个文件的内容,并添加一个额外的行,其中一些文本作为第四行.例如:
档案1:
one.0
one.1
one.2
one.3
Run Code Online (Sandbox Code Playgroud)
文件2:
two.0
two.1
two.2
two.3
Run Code Online (Sandbox Code Playgroud)
档案3:
three.0
three.1
three.2
three.3
Run Code Online (Sandbox Code Playgroud)
期望的结果:
one.0
two.0
three.0
sometext
one.1
two.1
three.1
sometext
one.2
two.2
three.2
sometext
one.3
two.3
three.3
sometext
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助!