grep
Search a file for lines containing a substring, returning each match with its line number.
Instructions
Return lines matching pattern in a single file, with line numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path of the file to search. | |
| pattern | Yes | Substring to search for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |