Script for creating Control file in UNIX

Delete

---- Original post, restored by mod after being deleted by abhilashnair ----
I have a requirement where, I need to create a control file which will have 3 columns in the header row as below:

Filename
Count
Checksum

This above control file has to contain metadata as above pertaining to 100+ csv files.

So basically I need a script which will parse through the directory take count of each of the csv file , create sha 256 checksum for each and then write this data to the control file.

Hi...
It goes without saying:

What is/are your machine [s]and OS[es].
What is your preferred shell and version.
And most importantly what have you attempted yourself and where does it fail?

Delete

After 13 years, not once you did the effort of showing an attempt in finding a solution by yourself, even an beginning, you should be ashamed