> On Oct 28, 2021, at 17:10, Nosadge <[email protected]> wrote:
> 
> Does anyone know a command/script/grep to make sure the first letter of every 
> line is capitalized?

Hey There,

How are you defining lines?

Line one.
Line two.
...

In that case Fletcher's regex works fine, although you might prefer to run it 
from a script.


#!/usr/bin/env perl -sw

while (<>) {
    s!^.!\U$&!;
    print;
}


See the section on Text Filters in the BBEdit Manual, if you don't know how to 
run one.

~/Library/Application Support/BBEdit/Text Filters/


Or did you mean sentences?


--
Best Regards,
Chris

-- 
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/00F0D581-AC42-4541-AA67-FAAEF96F237A%40gmail.com.

Reply via email to