SH Script for file name wildcards

Does anyone know how I would go about inserting text at the beginning of a file with the file name containing a daily time stamp? Essentially I need to find the file name using a wild card, and then insert 3 lines of text - one of which is the processing date. Help please!?

Hello and welcome to the forum.

The following may not be exactly what you want, but it should give you an idea of at least one possible approach. An example of how to add a couple of lines with a file's name (stored in a shell variable) and a current timestamp to the beginning of a file:

f=filename
ed -s "$f" <<EOED
1i
FILENAME: $f
TIMESTAMP: $(date)
.
w
q
EOED

Regards,
Alister