Post 9hjAdVEca5uYiS9kJs by rain@niu.moe
 (DIR) More posts by rain@niu.moe
 (DIR) Post #9hjAdVEca5uYiS9kJs by rain@niu.moe
       2019-04-12T09:54:01Z
       
       0 likes, 0 repeats
       
       OH #unix "but but but... what about the single responsibility principle??? Grep can't both load the file and pattern match against it's contents! Sacrilege."
       
 (DIR) Post #9hjBRMLDvAoJc21AFU by RefurioAnachro@mastodon.cloud
       2019-04-12T10:03:00Z
       
       0 likes, 0 repeats
       
       But...It's a simplified ed!#unix oh #unix my@rain
       
 (DIR) Post #9hjCFBkBb1CxDySDWC by mdhughes@cybre.space
       2019-04-12T10:12:02Z
       
       0 likes, 1 repeats
       
       @rain I agree with that in principle, though in practice I mostly use my "grepall" scriptfind . -type f |egrep -v "/\." |while read f; doegrep -Hni "$@" "$f"doneor my Python filter script which is even more do-everything.
       
 (DIR) Post #9hjTDcJ1ZDU2FKaNn6 by rain@niu.moe
       2019-04-12T13:22:14Z
       
       0 likes, 0 repeats
       
       @mdhughes is the python thing online? :)
       
 (DIR) Post #9hjTSyIw3j4eojrkp6 by mdhughes@cybre.space
       2019-04-12T13:25:00Z
       
       0 likes, 1 repeats
       
       @rain Yep! https://mdhughes.tech/utility-1-1/
       
 (DIR) Post #9hjo6oY7kHbZEHFK2S by leip4Ier@infosec.exchange
       2019-04-12T17:16:19Z
       
       0 likes, 0 repeats
       
       @mdhughes @rain have you tried the_silver_searcher (ag)? https://github.com/ggreer/the_silver_searcher
       
 (DIR) Post #9hjpnqEnRbSes6Hq0O by mdhughes@cybre.space
       2019-04-12T17:35:17Z
       
       0 likes, 0 repeats
       
       @leip4Ier @rain Like ack, that's an awful lot of code for a search. Even if it's fast, it's not installed everywhere.My Filter.py isn't either, but Python usually is, it's 2 files to copy into place, and it does a bunch of things by just being a tiny control layer over Python APIs.There's probably a smaller, faster ack possible the same way in any of a bunch of languages. Not in C.
       
 (DIR) Post #9hjpwcEwr8om46Xdlg by leip4Ier@infosec.exchange
       2019-04-12T17:36:53Z
       
       0 likes, 0 repeats
       
       @mdhughes @rain i see! for me, it's just a package from AUR i install on my dev machines by default, but i agree that a python script has its advantages.