pt

pt

TLDR

Find files containing "foo" and print the files with highlighted matches

>_ pt [foo]
copy

Find files containing "foo" and display count of matches in each file

>_ pt -c [foo]
copy

Find files containing "foo" as a whole word and ignore its case

>_ pt -wi [foo]
copy

Find "foo" in files with a given extension using a regular expression

>_ pt -G='[\.bar$]' [foo]
copy

Find files whose contents match the regular expression, up to 2 directories deep

>_ pt --depth=[2] -e '[^ba[rz]*$]'
copy

Copied to clipboard
free 100$ digital ocean credit