spot

Tiny file search utility (bash)

  • 所有者: rauchg/spot
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

spot(1)

Tiny ack-style file search utility.

Features

  • Short & written in Bash: you can edit it easily to suit your liking.
  • Fast. Just find + grep + awk.
  • Searches most things by default instead of some known predefined extensions.
  • Ignores .git, .hg, .svn, devices and binary files.

Usage

Smart phrases

All arguments constitute the search text. No need to wrap most searches
in double quotes.

Smart case

spot is case-insensitive by default. However, if your search term
contains an uppercase letter, it becomes sensitive!

Smart targets

If the first argument contains a slash and is a valid directory, the
search is constrained to that particular target.

Wildcard matching

In spot(1) searches, the . character acts as the RegExp wildcard,
making it very easy to perform searches that match anything, and to avoid
escaping characters or including ones that are not necessary for your
search.

Line abbrevation

If the line where matches are found is too long (such as minified source files),
spot(1) will only display the surrounding characters.

Options

spot -h to see them.

Installation

If you have NPM:

$ npm install -g spot

Or if you have bpkg

$ bpkg install -g spot

You're done! Otherwise, run this command:

curl -L https://raw.github.com/rauchg/spot/master/spot.sh -o ~/bin/spot && chmod +x ~/bin/spot

If you don't have ~/bin, replace it with another directory in your
$PATH, like /usr/local/bin.

License

(The MIT License)

Copyright (c) 2014 Guillermo Rauch <rauchg@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

概览

名称与所有者rauchg/spot
主编程语言Shell
编程语言Makefile (语言数: 3)
平台
许可证
发布数6
最新版本名称0.3.2 (发布于 2024-01-02 15:45:32)
第一版名称0.1.0 (发布于 2014-02-09 08:54:52)
创建于2012-03-04 15:55:44
推送于2024-01-02 23:45:40
最后一次提交2024-01-02 15:45:26
星数0.9k
关注者数24
派生数51
提交数71
已启用问题?
问题数15
打开的问题数4
拉请求数15
打开的拉请求数4
关闭的拉请求数4
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部