fro*_*r78 11 linux command-line coreutils text-processing
当前是否有一个通用命令可以“旋转”输入。
例如
#labeled.file
name: bob
title: code monkey
name: joe
title: pointy haired
Run Code Online (Sandbox Code Playgroud)
转换为:
name title
bob code monkey
joe pointy haired
Run Code Online (Sandbox Code Playgroud)
反之亦然
我不确定是否有什么东西coreutils
可以做到这一点,但似乎您的问题之前已经被那些不一定对您似乎对现有工具感兴趣的人提出过。作为万一您找不到已经执行此操作的工具的最后手段,您可能会感兴趣以下链接。
对于它的价值,你可能想看看的GNU的coreutils手册,特别是4个部分