https://github.com/dacap/findinfiles
quick alternative to find | grep
https://github.com/dacap/findinfiles
Last synced: about 1 month ago
JSON representation
quick alternative to find | grep
- Host: GitHub
- URL: https://github.com/dacap/findinfiles
- Owner: dacap
- License: mit
- Created: 2017-10-16T01:00:56.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-09-08T17:31:15.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T16:19:10.600Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# findinfiles
> Copyright (C) 2017-2020 David Capello
>
> This file is released under the terms of the MIT license.
> Read [LICENSE.txt](LICENSE.txt) for more information.
This little utility searches a piece of regular expression in all
files of the current directory and subdirectories. The idea is to
solve the most common case of a typical `find | grep` command. It's
not a replacement. It's not fully configurable. It's not what you
want. It's what I need and it might be useful to you.
### Usage
findinfiles [-1iv] [-. extension] PATTERN [PATTERN2...]
-1 Do not recurse directories
-i Ignore case
-v Verbose mode
-. ext Search only in files with the given extension
### Examples
findinfiles -. cpp -. h class
Finds all lines that contain `class` word in `.cpp` or `.h` files of
the current directory and subdirectories.
findinfiles Copyright
Finds all lines that contain `Copyright` word with a capital `C`.