Quote:
Originally Posted by victorcheung
Hi,
I have a number of files with contents in the following format:
The "echo <file name> <function name> is called" is to be added to the beginning of each function in the file.
How to do that? please help!
|
Why don't you start by looking at your OTHER THREAD, where you asked a very similar question months ago?
http://www.linuxquestions.org/questi...ne-4175546506/
Try applying what you were told, and what you learn, and again, read the "Question Guidelines" link in my posting signature. When asking such things,
YOU have to show us YOUR OWN EFFORTS, and what YOU have tried, rather than just asking for a handout.
If you need to loop through a bunch of files, again, there are MANY bash-scripting tutorials you can easily find. Show us what you have done/tried, and we can help you with problems.