How to output full path file name & first line of text of each file?
What command would you enter to list the first lines of all text files within your directory or within any directory inside there, and the full path filename?
I tried this: find . -type f -exec head -n1 –v {} \;
But the file names come out looking like this:
==> ./.progress <==
mpWjPDUAzdcO6
How can I get output that shows the full path file name on one line, then the first line of the text file on the next line?
|