1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 13:44:56 +02:00
tldr/pages/common/pt.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

24 lines
561 B
Markdown

# pt
> Platinum Searcher.
> A code search tool similar to `ag`.
- Find files containing "foo" and print the files with highlighted matches:
`pt {{foo}}`
- Find files containing "foo" and display count of matches in each file:
`pt -c {{foo}}`
- Find files containing "foo" as a whole word and ignore its case:
`pt -wi {{foo}}`
- Find "foo" in files with a given extension using a regular expression:
`pt -G='{{\.bar$}}' {{foo}}`
- Find files whose contents match the regular expression, up to 2 directories deep:
`pt --depth={{2}} -e '{{^ba[rz]*$}}'`