On 12/3/18 at 10:47 PM, rh...@jumbosoft.eu (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.
<sie...@barebones.com>                      <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
"supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to