JdeBP · @JdeBP
37 followers · 278 posts · Server tty0.social

@cks

This is a perennial stupidity in the C and C++ worlds.

Because the C and C++ standards leave some things up to _other_ standards, including (ironically) , the idea that one shouldn't talk about them in the comp.std.c and comp.std.c++ newsgroups mutated into a stupid dogma that C and C++ programs shouldn't rely upon anything from these other standards.

and are in the SVID. (-:

#posix #fgrep #egrep #gnu #grep #unix

Last updated 1 year ago

JdeBP · @JdeBP
31 followers · 187 posts · Server tty0.social

@penguin42 @cks

That's the thing. The GNU egrep and fgrep _already are_ shell scripts. Paul Eggert added this change _to those shell scripts_.

debbugs.gnu.org/cgi/bugreport.

#gnu #grep #egrep #fgrep

Last updated 1 year ago

JdeBP · @JdeBP
31 followers · 187 posts · Server tty0.social

@cks

You're a bit late. Debian had a bug about this, and patched the warnings out, back in 2022.

bugs.debian.org/cgi-bin/bugrep

The Debian bug log also points to the two GNU project bug reports, where Paul Eggert et al. argued against undoing the new behaviour.

#gnu #grep #fgrep #egrep

Last updated 1 year ago

🌈 ☯️Teresita🐧👭 · @linuxgal
569 followers · 3561 posts · Server techhub.social

Count words with two or more characters by ending character:

for i in {a..z} ; do printf "$i " ; look . | egrep ".$i$" | wc -l ; done | sort -k2nr

#egrep

Last updated 2 years ago

🌈 ☯️Teresita🐧👭 · @linuxgal
642 followers · 2127 posts · Server techhub.social

Frequency count of ending letters in words of 2 or more characters:

for i in {a..z} ; do printf "$i " ; look . | egrep ".$i$" | wc -l ; done | sort -k2nr

#egrep

Last updated 2 years ago

FOSSlife · @FOSSlife
865 followers · 1026 posts · Server mastodon.fosslife.org