Sometime ago I read a blog that showed a misuse of a commandline command that when given a list of files serially showed the content of each file and each file had header line showing the filename of the file below it. Could someone refresh my memory?
相关问题
- How to get the return code of a shell script in lu
- JQ: Select when attribute value exists in a bash a
- Invoking Mirth Connect CLI with Powershell script
- Why should we check WIFEXITED after wait in order
- Emacs shell: save commit message
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- In IntelliJ IDEA, how can I create a key binding t
- Check if directory exists on remote machine with s
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- Making new files automatically executable?
- Reverse four length of letters with sed in unix
- Compile and build with single command line Java (L
You can use either
tail
orhead
for this: when given multiple files, both tools precede each file's contents with a header containing the file name.To output the entire files instead of just the last/first 10 lines of each, use
tail -n +1
orhead -n -0
.