Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/negativetwelve/file-finder
Command line program to find text within files and to output their relative path, line number, and line that the text is contained on.
https://github.com/negativetwelve/file-finder
Last synced: 17 days ago
JSON representation
Command line program to find text within files and to output their relative path, line number, and line that the text is contained on.
- Host: GitHub
- URL: https://github.com/negativetwelve/file-finder
- Owner: negativetwelve
- Created: 2013-06-08T21:53:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-09T02:58:37.000Z (over 11 years ago)
- Last Synced: 2024-10-19T16:00:01.621Z (28 days ago)
- Language: Python
- Homepage:
- Size: 145 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## File Finder
### Setup
Clone this repo and move the `file_finder.py` file into /usr/bin as `ff`. That
will make the command available for you to use.After you move the file, make sure you run:
$ [sudo] chmod +x /usr/bin/ff
Finally, make sure you have Pip, then run:
pip install termcolor
### Usage
By default, ff will search all files in the current directory AND all
subdirectories. You can now run the following:ff def my_function
And it will output the filename, line number, and actual line of text that this
phrase is found on. There are a number of options that you can use with this function.### Options
`-h, --help`
`--ext extensions` Only look for certain extensions listed after --ext
For example:
ff def my_function --ext py
The above command will only look for the text `def my_function` in files with the extension `py`.
You can chain on multiple extensions.