Here’s a simple command-line interface (CLI) in Python to search for recent documents in a given directory, sorted by modification time, and filtered optionally by keyword and file type:
Example Usage
This will search for recent .txt and .pdf files with “report” in the name, modified within the last 5 days, limited to 20 results.
Let me know if you’d like it packaged as an installable CLI tool (e.g., using setuptools or Typer).
Share this Page your favorite way: Click any app below to share.