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 my header row, followed by \1. It sounds > simple in concept, but has stumped my rudimentary grep skill. Can > someone help by defining the grep, or by suggesting a more efficient > solution?
What you really need is a grep pattern that matches the beginning of the file: \A :) Ronald --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "supp...@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---