On 01/14/2021, at 10:08, Bruce Van Allen <[email protected] 
<mailto:[email protected]>> wrote:
> Here’s Rich’s explanation of BBEdit’s behavior.
> 
> I’m still not clear why Christopher seems to get different results.


Hey Bruce,

I figured it out.

The original data sample from Howard has many tabs in the “blank” lines.

So by Rich's definition they have content, and Process Lines is able to operate 
on them.

When I replace them with entirely empty lines then Process Lines fails.

My sed text filter works in both cases:


#!/usr/bin/env bash

sed -E '/^[[:blank:]]*$/d'


And just for practice let's do that with Perl:


#!/usr/bin/env perl -sw

while (<>) {
   if (m/\S+/) {print};
}


--
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/B2D1A8FD-4041-4CC1-983C-6598FB87EFC6%40gmail.com.

Reply via email to