Search for a literal text pattern in files.
Overrides BaseSandbox.grep() to normalize paths with a leading /
so they resolve correctly in the temp execution directory.
grep(
pattern: string,
searchPath: string = "/",
glob: string | null = null
): Promise<GrepResult>| Name | Type | Description |
|---|---|---|
pattern* | string | |
searchPath | string | Default: "/" |
glob | string | null | Default: null |