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 @kabel42 @rl_dane @amin @thedoctor
Legacy is mostly the safe route to go anyway, tried and tested, I am the one that gets called if shit stops working, and I'd rather have something I know and makes sense, with tons of resources of administrators of the before times having struggled with them to help me figure out what is going on. Rather than modern stuff, with their ai documentation, discord "forums" and shipping their whole pc (docker) because they couldn't get their shit to work on a clean system :p
@kabel42 @mirabilos @rl_dane @amin @thedoctor
Hey I relied on that bug!
@sotolf @kabel42 @mirabilos @rl_dane @thedoctor
Oh haha so it was intentional. I was wondering.
@kabel42 @mirabilos @rl_dane @thedoctor @sotolf
Haha, you got it too! XD
@sotolf @kabel42 @mirabilos @rl_dane @thedoctor
Sometimes knowing the right xkcd is like shooting fish in a barrel. (Cruel, but easy.)
@amin @sotolf @kabel42 @mirabilos @thedoctor
That's why I use good old C-x M-c M-spacebarheat ;)
@kabel42 @amin @sotolf @mirabilos @thedoctor
A slant reference to xkcd 378 ;)