File this under #shell #functions I should have written years ago:
function grepc {
#Do a grep -c, but skipping files with no results
grep -c "$@" |grep -v ':0$'
}
File this under #shell #functions I should have written years ago:
function grepc {
#Do a grep -c, but skipping files with no results
grep -c "$@" |grep -v ':0$'
}
Oh, didn't know about -c. I usually just pipe to wc -l I guess.
-c, -l, -h, -H, and -q are my favorite #grep flags. :D
Huh, that almost became a [Marcel Duchamp] reference. 😅
I just use -v and -E
...and bash instead of zsh
...and grep/awk/sed instead of jq
...and firefox instead of chrome
...and the fediverse instead of facebook
Face it... I'm an unpopular-opinion neckbeard level boss. XD
cc: @mirabilos
@rl_dane Those are so not comparable!

@mirabilos @thedoctor @kabel42 @sotolf @amin
ksh got started in... 1983? That's not legacy? XD
@mirabilos @kabel42 @sotolf @thedoctor @amin
Probably because people are addicted to the breakneck pace of "progress," novelty, and chasing their tails.
Maybe I'll spin up a laptop that only runs Unix v4 in a VM to try to spin the earth a tiny bit in the other direction. 😆
(Likely not)