Re: [PHP] How to change the first line of a text file

2010-06-12 Thread mcgiddin
The command would be something like this: find /wwwdir -name \*.txt -print | xargs sed -i s/oldtext/newtext/gi Matt Sent via BlackBerry by AT&T -Original Message- From: Steve Date: Sat, 12 Jun 2010 15:24:39 To: Subject: Re: [PHP] How to change the first line of a text file On 6/12/2

Re: [PHP] How to change the first line of a text file

2010-06-12 Thread mcgiddin
If you're running on a *nix system you may want to look at using find, xargs, and sed. Sorry I can't give you the syntax at the moment but you can google for the three of them and find several good examples. Matt Sent via BlackBerry by AT&T -Original Message- From: Steve Date: Sat, 1