https://github.com/dacap/findinfiles-cpp
This project was replaced with a Go implementation: https://github.com/dacap/findinfiles
https://github.com/dacap/findinfiles-cpp
Last synced: 8 months ago
JSON representation
This project was replaced with a Go implementation: https://github.com/dacap/findinfiles
- Host: GitHub
- URL: https://github.com/dacap/findinfiles-cpp
- Owner: dacap
- License: mit
- Created: 2014-07-30T03:16:44.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-10-09T14:19:05.000Z (over 8 years ago)
- Last Synced: 2025-02-28T16:19:10.626Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# findinfiles
> Copyright (C) 2014-2017 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] [-.ext] PATTERN [PATTERN2...]
-1 Do not recurse directories
-i Ignore case
-v Verbose mode
-.ext Search only in files with the given extension `.ext`
### 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`.
### Notes
findinfiles uses some things from C++11 like std::regex, it will not
work with older compilers.
I've tested the following compilers:
* Windows + VC2012
* Windows + VC2013
* macOS 10.13 + Xcode 9.0