Sent with Proton Mail secure email.

> Hi Rich-
> 
> I just use AI for this kind of thing these days.
> Just make a quick workaround script.
> 
> Like this.
> 
> grep -r 'Beeping' testdir/ | awk -F: '/\.txt$/ {print}'
> 
> thanks,
> jim
> 
> 
> 
> 
> Sent with Proton Mail secure email.
> 
> 
> On Tuesday, September 3rd, 2024 at 9:13 AM, Rich Draves via Cygwin 
> cygwin@cygwin.com wrote:
> 
> > I often use grep -r --include. But it has a really annoying problem - the 
> > comparison of the filename is case-sensitive. The -i option seems to apply 
> > only to the regex not the filename matching.
> > 
> > For example, I have many files named virtualenvironment.ini. But 
> > unfortunately, sometimes it is virtualEnvironment.ini, 
> > VirtualEnvironment.ini, etc.
> > 
> > Grep -r --include=virtualenvironment.ini skips the latter files. As a 
> > work-around, I use --include="[Vv]irtual[Ee]nvironment.ini" but this is 
> > cumbersome and not a complete solution.
> > 
> > Because Windows is case-insensitive/case-preserving, I think the Cygwin 
> > filename matching should also be case-insensitive. Am I missing something 
> > here?
> > 
> > Thanks,
> > Rich
> > 
> > --
> > Problem reports: https://cygwin.com/problems.html
> > FAQ: https://cygwin.com/faq/
> > Documentation: https://cygwin.com/docs.html
> > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to