LinuxCommandLibrary

rga

Search recursively with ripgrep and apply patches

TLDR

Search recursively for a pattern in all files in the current directory

$ rga [regular_expression]
copy

List available adapters
$ rga --rga-list-adapters
copy

Change which adapters to use (e.g. ffmpeg, pandoc, poppler etc.)
$ rga --rga-adapters=[adapter1,adapter2] [regular_expression]
copy

Search for a pattern using the mime type instead of the file extension (slower)
$ rga --rga-accurate [regular_expression]
copy

Display help
$ rga --help
copy

SYNOPSIS

rga [options]

PARAMETERS

-h, --help
    Show help message and exit.

-n
    Specify the number of image results to return (Default: 1).

-s
    Specify the search engine to use (google, yandex, bing, baidu). Default: google.

-u
    Specify custom url. It must contain '%s' for image filename substitution.

-o
    Specify the output filename (to save the search results HTML).
If not specified, a temporary file is created.

-l
    Specify the language for search results.
Use language code like en for English, es for Spanish, etc. Default: en.

-t
    Timeout in seconds. Default: 30.

-x
    Use HTTP proxy.

-p
    Use HTTPS proxy.

-v, --version
    Show version information and exit.

DESCRIPTION

rga (reverse Google search assistant) is a command-line tool designed to simplify the process of reverse image searching using Google Images.
It automates the steps of downloading an image, uploading it to Google Images, and opening the search results in your web browser.
This can be useful for identifying the origin of an image, finding similar images, or detecting potential copyright infringements. rga streamlines what would otherwise be a multi-step process into a single, easy-to-use command.

CAVEATS

rga depends on external tools like curl (or wget) for downloading images and a web browser for displaying the search results.
Google's search algorithms and website structure can change, potentially breaking rga's functionality. In those cases, updates to the tool may be required.

EXAMPLES

rga http://example.com/image.jpg
rga image.png
rga -n 5 http://example.com/image.jpg

SEE ALSO

curl(1), wget(1)

Copied to clipboard