我有两个文件包含如下
cat file1.txt
a b c
1 2 3
cat file2.txt
a
b
c
1
2
3
Run Code Online (Sandbox Code Playgroud)
我想将file1安排为
a
b
c
1
2
3
Run Code Online (Sandbox Code Playgroud)
和file2安排为
a b c
1 2 3
Run Code Online (Sandbox Code Playgroud)
我想用awk一行解决方案
awk ×1