On 8/11/09 at 4:08 PM, [email protected] (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?

Presumably, these are files with ASCII characters. If so, the pattern

[[:ascii:]]+

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 sufficient search pattern.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "[email protected]" 
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to