An open API service indexing awesome lists of open source software.

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

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