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!
@sotolf @kabel42 @mirabilos @amin @thedoctor
> ...guess how you configure a command line tool it boots up a web server where you configure it...
*runs screaming for the hills
What the absolute forking fork egad Noooooooo!!!!!!!
@mirabilos @kabel42 @sotolf @amin @thedoctor
He moved from IBM to MS, because IBM wasn't evil enough. π
@kabel42 @mirabilos @amin @sotolf @thedoctor
1. When in doubt, copy Windows.
2. Moar systemd
3. ?!?!?
4. PROFIT!!!