On 12/3/18 at 10:47 PM, [email protected] (Ronald Hofmann) wrote:

I have a folder with 2500 text files and all lines end with ";" except the last line like this

Mendoza,-32.890845,-68.827171,973'047,ARG;
Rosario,-32.946818,-60.639317,1'218'497,ARG;
Cordoba,-31.413496,-64.181052,1'441'007,ARG

Instead of opening every file and adding a ";" I'm looking for an automation to do this for me.

In Grep, "\Z" matches the end of file. So you could try doing a multi-file Replace all with Grep turned on, searching for "\Z" and replacing with ";".

R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <http://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 to the group.
Follow @bbedit on Twitter: <https://www.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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to