https://github.com/hymkor/findo
Search filename from the subdirectories of the current directory.
https://github.com/hymkor/findo
commandprompt find unix-like windows
Last synced: 11 months ago
JSON representation
Search filename from the subdirectories of the current directory.
- Host: GitHub
- URL: https://github.com/hymkor/findo
- Owner: hymkor
- License: mit
- Created: 2017-11-28T12:07:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T03:47:57.000Z (about 3 years ago)
- Last Synced: 2025-02-10T15:50:54.906Z (about 1 year ago)
- Topics: commandprompt, find, unix-like, windows
- Language: Go
- Size: 33.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/zetamatta/findo)
findo - a command like `find`
==============================
The `findo` search files from the tree below the current directory.
```
$ findo -h
Usage of findo.exe:
-1 Show nameonly without size and timestamp
-d string
Set start Directory (default ".")
-f Select fileonly not including directories
-ignoredots
Ignore files and directory starting with dot
-in duration
Files modified in the duration such as 300ms, -1.5h or 2h45m
-notin duration
Files modified not in the duration such as 300ms, -1.5h or 2h45m
-l Show size and timestamp
-q Enclose filename with double-quotations
-v verbose (use with -x)
-x string
Execute a command replacing {} to FILENAME
```
Example-1: no arguments and no redirect
-------------------------------------
`findo` prints the tree under the current directory.
```
$ findo
.git
4,096 2018-06-22 18:08:28.6822833 +0900 JST
.git\COMMIT_EDITMSG
347 2017-12-29 08:54:25.1692404 +0900 JST
.git\FETCH_HEAD
96 2018-06-22 18:08:28.6197845 +0900 JST
.git\HEAD
23 2017-11-28 21:04:59.3605057 +0900 JST
```
Example-2: when the standard output is redirected
-------------------------------------------------
Timestamp and size are omitted.
```
$ findo | more
.git
.git\COMMIT_EDITMSG
.git\FETCH_HEAD
.git\HEAD
:
```
Example-3: A filename pattern(wildcard) is given.
---------------------------------------
```
$ findo H*
.git\HEAD
23 2017-11-28 21:04:59.3605057 +0900 JST
.git\hooks
4,096 2017-11-28 21:04:59.1064544 +0900 JST
.git\logs\HEAD
716 2018-06-22 18:08:28.6822833 +0900 JST
:
```
Example-4: Executing commands
-----------------------------
```
$ findo -X "wc -l {}" *.md *.go
wc -l "README.md"
102
wc -l "hoge and hoge.md"
0
wc -l "main.go"
124
wc -l "system_linux.go"
15
wc -l "system_windows.go"
21
```
History
=======
v0.3.0
------
- Add option: `-X`: same as -x,-v and -q
- Support Linux not only Windows
v0.2.0 (20180912)
-----------------
- Add options: `-x`,`-q`,`-d`,`-l`
- Support Multi patterns
- If stdout is terminal, output simple. and add `-l` option
v0.1.0 (20171128)
-----------------
- First release