Hello,
I need to create a bash script that adds a row before every curly bracket for functions, classes (classes and methods) and try/catch blocks in PHP code.
I think using the program in conjunction with sed
E.G. : find . -type f \( -name "*.php \) -exec sed .......
For example:
Becomes:PHP Code:<?php
function my_function() {
}
Can you help me so that I can achieve this, please?PHP Code:<?php
function my_function()
{
}
Thank you!



Reply With Quote





Bookmarks