Need help in script

Hi all,

I am a newbie to Unix and i have requirement to add a prefix as column number to the header row columns. ( Add [Column#] to Column).The file is a pipe delimited.
Input

Student_Id|Student_Name|Student_Address

Output should be

01_Student_Id|02_Student_Name|03_Student_Address

There can be multiple files and each file can have different number of columns. Example file 1 can have 2 columns, file 2 can have 5 columns etc, but all the files are delimeted by |.

Could someone please help me in writing a script which works for all the file.

Note: requirement is just to add prefix for column names ( header row)

Thanks in advance

any attempts on your own?
Where exactly are you stuck?
Homework?

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.