On Tue Oct 13 2015 16:15:13 [email protected]    
<[email protected]> said:
> 
> #!/usr/bin/env perl
> use strict;
> use warnings;
> my $next;
> while (<>) {
>    ($next = $_) =~ s/(\d+)/$1+1/ge;
>    print;
> }
> print $next;

Thanks, That looks promising, though it prints the lines on a single line.

For now I’ve solved my temporary issue by doing an end-around

$ seq 9501 9799 | bbedit

grep   : ^9
replace: text I want: 9


(In case anyone cares, I was making a vcf for my contacts that notions all the 
9501-9799 shott codes my carrier uses to set the from on SMS messages that go 
through the email to SMS gateway, so hopefully they will all show up as a 
single “conversation” on my phone.)



-- 
Elves are wonderful. They provoke wonder. Elves are marvelous. They
cause marvels. Elves are fantastic. They create fantasies. Elves are
glamorous. They project glamour. Elves are enchanting. They weave
enchantment. Elves are terrific. They beget terror.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://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].

Reply via email to