find . -type f |xargs awk '$0=FILENAME$0' > out
as I replied, your string "no awk" does not exist yet. anyway, see my updated answer below:
find, exec/xargs sed . script GNU Sed, , .
: (, > out . .)
find . -type f | xargs -i echo {}|sed -r 's#(.\/)(.*)#cat &\|sed "s:^:file \2 :g"#ge'
, . :
kent$ head *.txt
==> a.txt <==
A1
A2
==> b.txt <==
B1
B2
kent$ find . -type f | xargs -i echo {}|sed -r 's#(.\/)(.*)#cat &\|sed "s:^:file \2 :g"#ge'
file b.txt B1
file b.txt B2
file a.txt A1
file a.txt A2
- ?
find ....|xargs -i echo {} ,
( "./")- sed,
sed -r 's#(.\/)(.*)# MAGIC
#ge' - ,
\1: "./"
\2 "a.txt"(filename) - sed
e, MAGIC
. ( GNU sed) - MAGIC:
cat &\|sed "s:^:file \2 :g cat
sed. (s:..:..:g) - , MAGIC
sed.
- "e" Gnu sed.