1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 04:55:23 +02:00

pt: add page (#2246)

This commit is contained in:
Artiom Basenko 2018-08-17 13:24:45 +03:00 committed by Starbeamrainbowlabs
parent 93690e0723
commit 4428bf586d

24
pages/common/pt.md Normal file
View file

@ -0,0 +1,24 @@
# 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 folders deep:
`pt --depth={{2}} -e '{{^ba[rz]*$}}'`