Re: Adding a header row

2009-08-11 Thread Semper Fidelis
Presumably you mean "\A" instead of "/A" to reference the start of a file. On Aug 11, 2009, at 6:58 PM, Bill Rowe wrote: > will match the entire file. But if all you want to do is add > something at the start of the files, the pattern > > /A > > is the start of a document and should be a suffi

Re: Adding a header row

2009-08-11 Thread Bill Rowe
On 8/11/09 at 4:08 PM, dplistacco...@gmail.com (dp) wrote: >I would like to add the same header row to all of the files in a >folder. I'm attempting a multi-file search and replace. I need a >grep pattern that will find the entire contents of any file. Then, >the replacement pattern could be my h

Re: Adding a header row

2009-08-11 Thread Ronald J Kimball
On Tue, Aug 11, 2009 at 04:08:56PM -0500, dp wrote: > > I would like to add the same header row to all of the files in a > folder. I'm attempting a multi-file search and replace. I need a grep > pattern that will find the entire contents of any file. Then, the > replacement pattern could be

Adding a header row

2009-08-11 Thread dp
I would like to add the same header row to all of the files in a folder. I'm attempting a multi-file search and replace. I need a grep pattern that will find the entire contents of any file. Then, the replacement pattern could be my header row, followed by \1. It sounds simple in concept,