为了cat
用于*.txt
在特定目录中输出文件,如何在每个文件之前插入文件名作为“ break”?
file #1
contents of file
file #2
contents of file
理想情况下,它是一个易于记忆的bash
命令。
也可以看看:
@ 0stone0答案的另一个选择您可以使用insted tail
of cat:
tail -n +1 *
输出:
==> file-1.txt <==
contents of file
==> file-2.txt <==
contents of file
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句