mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
rg: add passthrough example (#23605)
This commit is contained in:
+2
-2
@@ -24,9 +24,9 @@
|
||||
|
||||
`rg {{pattern}} {{[-g|--glob]}} '{{filename_glob_pattern}}'`
|
||||
|
||||
- Recursively list filenames in the current directory that match a pattern:
|
||||
- Recursively list filenames in the current directory and highlight ones that match a pattern:
|
||||
|
||||
`rg --files | rg {{pattern}}`
|
||||
`rg --files | rg {{[--passthru|--passthrough]}} {{pattern}}`
|
||||
|
||||
- Only list matched files (useful when piping to other commands):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user