1. hishnik

    Solved grep -IL vs ggrep -IL to find binaries

    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?
  2. blind0ne

    Shell Regexp fiction

    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
  3. M

    Do not some system utilities stagnate?

    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...
  4. I

    How to limit search result of directories/files to limited top-level directories only?

    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...