Quote:
Originally Posted by kf_rocks
Hi
I have got a task at work, to replace the file banners of some legacy code in our system, with some updates.
ie; at present the banner is something line
/**
* file ABC
* Author XYZ
* desciption blah.blah blah
*/
I have got to change to something like
/**********
* file ABC
* Date 1-1-1
* Author XYZ
* copyright info
* desciption blah.blah blah
* modified date
************/
This has to be done for a large number of files. So I am looking for a script by which I could automate the process. I am not very familiar with SED. So any help i get regarding this would be great.
|
Well, you're on the right track with sed. Post what you've written so far, and we can give you a hand. Otherwise, there are lots of tutorials on the web, that'll show you how to process all files in a directory.