如何在Unix中将一行转移到另一行 [英] How to transfer one line to another in Unix
本文介绍了如何在Unix中将一行转移到另一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我有以下输入:
BSCTMC A13728, J02448, L13668, M14730, A12868, C11347,
L14203, C02285, A14419, BO0797, S12666, M12653,
D04841, S02825, T14713, L15004, C01972, E12057,
S13319
我希望 A13728、J02448(等等)到 S13319 都在同一条线上.我想创建一个将其保存到文本文件的脚本.感谢您的帮助.
I want the A13728, J02448 (and so on) up to S13319 on the same line instead. I want to create a script that saves it to a text file. Thanks for your help.
推荐答案
简单:
$ xargs < infile > outfile
这篇关于如何在Unix中将一行转移到另一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文