Quote:
Originally Posted by DownunderDave
Thanks for that Wabard.
I have just added another option to the find command so I know which file is being 'cat'ed.
|
Regarding your requirement for the filename to be output, please note the following should handle your full requirements and should be compatible with all U**X flavors... (I've searched for *.c in my example).
Code:
find . -type f -name "*.c" -exec awk 'BEGIN{s="====================="} {if(n++<1){printf("%s %s %s\n",s,FILENAME,s)}else{print}}' {} \;