ripgrep Essentials

Code

ripgrep Essentials

Install

sudo apt install ripgrep -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  ripgrep
0 to upgrade, 1 to newly install, 0 to remove and 8 not to upgrade.
Need to get 1,295 kB of archives.
After this operation, 4,255 kB of additional disk space will be used.
Get:1 http://au.archive.ubuntu.com/ubuntu jammy/universe amd64 ripgrep amd64 13.0.0-2 [1,295 kB]
Fetched 1,295 kB in 1s (2,230 kB/s)
Selecting previously unselected package ripgrep.
(Reading database ... 312314 files and directories currently installed.)
Preparing to unpack .../ripgrep_13.0.0-2_amd64.deb ...
Unpacking ripgrep (13.0.0-2) ...
Setting up ripgrep (13.0.0-2) ...
Processing triggers for man-db (2.10.2-1) ...
rg port:

Searches current directory recursively for ‘port:’

rg address config.txt

Searches for ‘address’ within file config.txt