[go: up one dir, main page]

Skip to content

Concurrently find files containing text, or project language with codemeta.json

License

Notifications You must be signed in to change notification settings

scivision/pyfindfiles

Repository files navigation

PyFindFiles

ci PyPi Download stats

Find files (text or binary) containing text or patterns efficiently with Python, cross-platform. Default is to only search files smaller than 10 MBytes. Uses pipelining and asyncio to speed up operations.

Install

Normally install by

pip install pyfindfiles

for latest development code

git clone https://github.com/scivision/pyfindfiles

pip install -e pyfindfiles

Usage

findtext looks for strings inside text or binary files, and reports filename text is found in.

  • -v: filename, line number, and text found
  • -t: search for files newer than date, or between dates if two dates given.
python -m pyfindfiles.text Pattern "*.ext" root

Pattern : text to search for

"*.ext" : file extension(s) to search for

root : top-level directory to search under


python -m pyfindfiles.video top

looks under top-level directory "top" for video files (by common file extensions)