Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pluveto/list-c
This is a list tool like `ls` with less features
https://github.com/pluveto/list-c
Last synced: 5 days ago
JSON representation
This is a list tool like `ls` with less features
- Host: GitHub
- URL: https://github.com/pluveto/list-c
- Owner: pluveto
- Created: 2022-04-15T19:24:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-16T03:16:12.000Z (over 2 years ago)
- Last Synced: 2024-10-07T05:21:06.872Z (about 1 month ago)
- Language: C
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## list-c
This is a list tool like `ls` with less features. It lists files (no dir). It's one of my Linux course homework from BUPT.
## Usage
```
usage: ./build/list [-arl:m:h:] [path...]
-a list all files
-r recursive
-l min size
-h max size
-m max days
args after -- will be ignored
```Examples:
```
./list -l 100 -h 5000 /bin /etc # list files in /bin and /etc
with size range [100, 5000]
./list -a -r -l 5000 -m 2 # list files recursively in
current directory that is
larger than 50000 bytes and
modified in the last 2 days
./list -- -l # just like ./list, ignore args after --
./list # list all files in current directory
```## Build
```shell
make build
```## Debugging
```shell
make debug
# or:
make gdb_debug
```You can specific a log level in `.env` file or environment variable:
```
LOG_LEVEL=
```