notes

Log | Files | Refs

grep_and_ripgrep.txt (342B)


      1 Grep and Ripgrep
      2 
      3 Ripgrep is several magnitude faster than grep:
      4 
      5 - This command searches for the word "TODO" in current directory without recursion:
      6 
      7 rg "TODO"
      8 
      9 - This command lists all symlinks in current directory:
     10 
     11 ls -la | grep "^l"
     12 
     13 - Shows 2 more lines after the grepped line:
     14 
     15 list some data | rg "listing_index_page_entry_urls" -A 2