https://github.com/hanson/textfinder
https://github.com/hanson/textfinder
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hanson/textfinder
- Owner: Hanson
- License: mit
- Created: 2021-02-19T09:30:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-21T12:46:00.000Z (over 5 years ago)
- Last Synced: 2025-05-31T09:47:51.393Z (about 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TextFinder
在特定路径查找或替换指定字符串,可设置过滤的文件名以及目录层级
## Usage
### 指定路径
`./main -p /var/www -f find`
### 遍历所有目录
`./main -p /var/www -f find -l -1`
### 遍历一级目录
`./main -p /var/www -f find -l 1`
### 只查找特定文件名
`./main -p /var/www -f find -o .go`
### 某些文件名不查找
`./main -p /var/www -f find -e .md`