Re: Suffix text with ";" in multiple files

2018-12-04 Thread Rich Siegel

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.
  

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: 
--- 
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.


Re: Suffix text with ";" in multiple files

2018-12-04 Thread Andrew Brown
Add a ; at the end of every line then change ;; to ;

AB

> On 4 Dec 2018, at 04:47, Ronald Hofmann  wrote:
> 
> Hi all,
> 
> 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.
> May be BBEdit can do it? I only found "suffix lines".
> 
> Any clues?
> 
> Greetings from Germany, Ronald 
> 
> -- 
> 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:  >
> --- 
> 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 
> .

-- 
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: 
--- 
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.


Suffix text with ";" in multiple files

2018-12-04 Thread Ronald Hofmann
Hi all,

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.
May be BBEdit can do it? I only found "suffix lines".

Any clues?

Greetings from Germany, Ronald 

-- 
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: 
--- 
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.