【发布时间】:2013-01-13 08:39:46
【问题描述】:
在 Linux 中,我有很多文件,我需要将所有文件的第 n 行的第 m 个单词连同文件名一起复制粘贴到一个普通的 .txt 文件中。所以我的最终文本文件看起来有点像这样......
<FileName1> <mth word of nth line of FileName1>
<FileName2> <mth word of nth line of FileName2>
.
.
<FileNameN> <mth word of nth line of FileNameN>
谁能告诉我这个Linux命令。 感谢您!!
【问题讨论】:
-
试试 awk 然后告诉我们你是怎么来的:gnu.org/software/gawk/manual/gawk.html