| Crates.io | ygrep |
| lib.rs | ygrep |
| version | 0.1.34 |
| created_at | 2025-08-13 09:20:00.909705+00 |
| updated_at | 2025-08-20 18:36:15.752842+00 |
| description | The grep command of the Younix application |
| homepage | |
| repository | https://github.com/ibilalkayy/younix |
| max_upload_size | |
| id | 1793462 |
| size | 12,447 |
grep CommandThe 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.
younix grep [OPTIONS] --pattern <PATTERN> <FILE>
| 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 |
| Argument | Description |
|---|---|
<FILE> |
File to search |
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