ygrep

Crates.ioygrep
lib.rsygrep
version0.1.34
created_at2025-08-13 09:20:00.909705+00
updated_at2025-08-20 18:36:15.752842+00
descriptionThe grep command of the Younix application
homepage
repositoryhttps://github.com/ibilalkayy/younix
max_upload_size
id1793462
size12,447
Bilal Khan (ibilalkayy)

documentation

README

Younix grep Command

The grep command in Younix searches for lines in a file that match a specified pattern, similar to the Unix grep utility. It supports case-insensitive searches and inverted matching.

Usage

younix grep [OPTIONS] --pattern <PATTERN> <FILE>

Options

Option Description
-p, --pattern <PATTERN> The pattern to search for
-c, --case-insensitive Match the pattern case-insensitively
-i, --invert Show lines that don't match the pattern
-n, --number Show line numbers in the output
-h, --help Print help information

Arguments

Argument Description
<FILE> File to search

Examples

  • Search for "error" in logs.txt:

    younix grep --pattern error logs.txt
    
  • Case-insensitive search with line numbers:

    younix grep --pattern error logs.txt -c -n
    
  • Show lines that don't match "error":

    younix grep --pattern error logs.txt -i
    
Commit count: 98

cargo fmt