Skip to main content

smart-find makes it easier to access the advanced features of find and grep

Project description

smart-find

smart-find makes it easier to access the advanced features of find and grep.

Usage

Use the -help option to show the smart-find usage.

    $ smart-find -help
    Usage: smart-find

        -help               - print this help
        -contains (-c)      - grep for string in found files
        -ignore-case (-i)   - ignore case when greping
        -iname (-in)        - ignore case of filenames
        -save-config        - write the default config
                              into /Users/barry/Library/Preferences/smart-find.json
        -debug              - print the find command line
        -<int>              - limit find to a max depth of <int>

configuration

smart-find follows the conventions of macOS and Linux XDG to look for configuration files.

You can see the default configuration file path in the smart-find -help output

  • macos - ~/Library/Preferences/smart-find.json
  • linux - ~/.config/smart-find.json

Use the smart-find -save-config to create a config file with the default configuration options:

The default configuration is:

    {
        "folders_to_prune": [".svn", ".git", ".hg"],
        "files_to_prune":   ["*~"]
    }

The following items are supported:

  • folders_to_prune is a list of folders that will be ignored
  • files_to_prune is a list of file patterns that will be ignored

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart-find-1.0.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

smart_find-1.0.5-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file smart-find-1.0.5.tar.gz.

File metadata

  • Download URL: smart-find-1.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for smart-find-1.0.5.tar.gz
Algorithm Hash digest
SHA256 98ed70c14595554c23310bdb9048bd65c80e351477b7a4e5e7c051b0217e1861
MD5 2bf74fdba69fa928b407652912489208
BLAKE2b-256 afb91d3c98e5044fcd89d5c0e1c1f0cd8aafbe52ad3ee8f19e6d55dc66eb44f6

See more details on using hashes here.

File details

Details for the file smart_find-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: smart_find-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for smart_find-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c043349a499d3304a96b64e7d3ae02e36668818c2a298b6d626cce7f8e2bd259
MD5 f42ce9c3bced37d973f2fe8a6ac931aa
BLAKE2b-256 d8e2f917bc2d3eb3c910ea847a79ef96582770df234e720b9d7e9fa15d984864

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page