Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.07 KB

list-files.md

File metadata and controls

23 lines (20 loc) · 1.07 KB

List files

You can use the -l flag to have ripgrep list the files it is searching without showing if there are any matches inside:

$ rg -g '*' -l "hello world"
rust/include_str!.md
javascript/chunking-a-string.md
node_modules/.pnpm/[email protected]/node_modules/debug/README.md
node_modules/.pnpm/@[email protected]/node_modules/@types/node/wasi.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/util.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/https.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/cluster.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/url.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/http2.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/http.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/console.d.ts
node_modules/.pnpm/@[email protected]/node_modules/@types/node/sea.d.ts

Here is a helpful user guide.