On 20 Sep 2021, at 14:16, Adam Potthast wrote:
I'm looking for a textfactory action like "Prefix/Suffix Lines", but I
want
to automatically add a string to the beginning and end of each file
(not
each line). I figured finding this would be easy, but so far it has
escaped
me.
Using Grep, "\A" matches the beginning of the file; and "\z" matches the
end of the file.
So, you could do two searches:
\A replace with foo\n
and
\z replace with bar\n
which I think will do what you need.
R.
--
Rich Siegel Bare Bones Software, Inc.
<[email protected]> <https://www.barebones.com/>
Someday I'll look back on all this and laugh... until they sedate me.
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "[email protected]" rather than posting here.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/0C815FC2-6BF6-4E02-AD60-FFC956260C69%40barebones.com.