yarub Posted October 10, 2009 Share Posted October 10, 2009 I couldn't figure out where to put this.. and I'm not coming up with what I want via Google... so I decided to post here. I'm trying to figure out a way I can enter in a few copyright lines into quite a few pages without manually doing it. Like if you open each individual file, I want there to be a property notice at the top of each one. Does anyone know of a program that will automatically add it in? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/177161-enter-text-into-several-files/ Share on other sites More sharing options...
Daniel0 Posted October 10, 2009 Share Posted October 10, 2009 Some IDEs allow you to search and replace through multiple files. You could also just use PHP to traverse through the directory tree and modify the files like that. Quote Link to comment https://forums.phpfreaks.com/topic/177161-enter-text-into-several-files/#findComment-934159 Share on other sites More sharing options...
Adam Posted October 10, 2009 Share Posted October 10, 2009 If you have bash, you could use "sed" .. This might be of use: http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/ Quote Link to comment https://forums.phpfreaks.com/topic/177161-enter-text-into-several-files/#findComment-934278 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.