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

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

2010-06-12 Thread mcgiddin
eve 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/2010 2:10 PM, Richard Kurth wrote: > > I have around 6000 text files and I need to change the first line on > every one of them. > > The first line is the title of the ar

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

2010-06-12 Thread Steve
On 6/12/2010 2:10 PM, Richard Kurth wrote: I have around 6000 text files and I need to change the first line on every one of them. The first line is the title of the article and I need it look like this the name of the article every file has the first line and the it starts the article on

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

2010-06-12 Thread Ashley Sheridan
On Sat, 2010-06-12 at 14:10 -0700, Richard Kurth wrote: > I have around 6000 text files and I need to change the first line on every > one of them. > > The first line is the title of the article and I need it look like this > the name of the article > > every file has the first line and the it