【发布时间】:2015-08-18 18:01:25
【问题描述】:
所以这是我在 cat 多个配置文件和 grep 文件名和修改日期时的输出。
/path-to-file/name of file
modified date
/path-to-file/name of file
modified date
/path-to-file/name of file
modified date
我希望输出是这样的,如果可能的话,在单词“文件”之后添加逗号。
/path-to-file/name of file, modified date
/path-to-file/name of file, modified date
/path-to-file/name of file, modified date
/path-to-file/name of file, modified date
【问题讨论】:
-
通过写shell脚本,读两行写一行。