Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

30
pt Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pt
> Platinum Searcher.
> A code search tool similar to `ag`.
> More information: <https://github.com/monochromegane/the_platinum_searcher>.
- 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]*$}}'`