https://github.com/lionello/fart-it
Find And Replace Text command line utility. New & improved version of the well-known grep command, with advanced features such as: case-adaption of the replace string; find (& replace) in filenames, auto CVS edit.
https://github.com/lionello/fart-it
Last synced: 6 months ago
JSON representation
Find And Replace Text command line utility. New & improved version of the well-known grep command, with advanced features such as: case-adaption of the replace string; find (& replace) in filenames, auto CVS edit.
- Host: GitHub
- URL: https://github.com/lionello/fart-it
- Owner: lionello
- Created: 2019-07-05T01:34:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T22:59:34.000Z (over 1 year ago)
- Last Synced: 2024-12-11T14:04:41.137Z (6 months ago)
- Language: C++
- Size: 223 KB
- Stars: 136
- Watchers: 9
- Forks: 27
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FART

Find And Replace Text command line utility. New & improved version of the well-known grep command, with advanced features such as: case-adaption of the replace string; find (& replace) in filenames.
```
Usage: fart [options] [--] [,...] [find_string] [replace_string]Options:
-h, --help Show this help message (ignores other options)
-q, --quiet Suppress output to stdio / stderr
-V, --verbose Show more information
-r, --recursive Process sub-folders recursively
-c, --count Only show filenames, match counts and totals
-i, --ignore-case Case insensitive text comparison
-v, --invert Print lines NOT containing the find string
-n, --line-number Print line number before each line (1-based)
-w, --word Match whole word (uses C syntax, like grep)
-f, --filename Find (and replace) filename instead of contents
-B, --binary Also search (and replace) in binary files (CAUTION)
-C, --c-style Allow C-style extended characters (\xFF\0\t\n\r\\ etc.)
--cvs Skip cvs dirs; execute "cvs edit" before changing files
--svn Skip svn dirs
--git Skip git dirs (default)
--remove Remove all occurences of the find_string
-a, --adapt Adapt the case of replace_string to found string
-b, --backup Make a backup of each changed file
-p, --preview Do not change the files but print the changes
```