Hello.
I have strange behavior of this commands.
GNU grep is able to find binaries with '-IL' option, but BSD grep is not.
> ggrep -LI . ./sheepdog-1.0.1-1_amd64.deb
./sheepdog-1.0.1-1_amd64.deb
> grep -LI . ./sheepdog-1.0.1-1_amd64.deb
>
Why?
Hello,
Trying to get IP addresses from auth.log file,
Don't understand why this pattern is no valid
grep -o "/(\d+\.){3}\d+/g" /var/log/auth.log
What is the correct command to print each ip in such statement?
grep "Failed password" /var/log/auth.log | grep '(\d+\.){3}\d+'
Thanks
I will provide an example, the grep program. It is one of the most famous Unix utilities and comes with the system by default. But lets face the truth, its performance and experience is poor comparing to ripgrep or The Silver Searcher. I can't even remember when I have used grep without passing...
I did a find / -name 'XXX' and the output is insane. It lists every file and the list never ends (I had to Ctrl-C to stop it).
How can I view the results meaningfully? For example, I'd like to limit to the result to appear only for, say the top-level (or top 2nd or 3rd level) directories only...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.