Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 UNIX 中创建文件的镜像。例子:
输入文件:Alex 12345 john Bravo
输出应该是:Bravo john 12345 Alex
任何帮助,将不胜感激..!!
使用 awk:
awk '{for (i=NF;i>=1; i--) printf("%s ", $i); print ""}' inFile