Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/without-eyes/find
Command for finding files by name for UNIX-like OS
https://github.com/without-eyes/find
c11 command-line-tool find find-files linux multithreading terminal wildcard
Last synced: 4 days ago
JSON representation
Command for finding files by name for UNIX-like OS
- Host: GitHub
- URL: https://github.com/without-eyes/find
- Owner: without-eyes
- License: mit
- Created: 2024-09-11T19:17:43.000Z (22 days ago)
- Default Branch: master
- Last Pushed: 2024-09-19T09:55:54.000Z (14 days ago)
- Last Synced: 2024-09-26T01:18:20.943Z (7 days ago)
- Topics: c11, command-line-tool, find, find-files, linux, multithreading, terminal, wildcard
- Language: C
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Find Command
This is a simple custom implementation of a [`find`](https://en.wikipedia.org/wiki/Find_(Unix))-like command for UNIX-like operating systems, written in C.## Features
- Search for files by name.
- Support for wildcard patterns (`.` and `*`).
- Recursive search through directories.## Installation
To compile and install the `find` command, follow these steps:
1. Clone the repository:
```bash
git clone https://github.com/without-eyes/findCommand.git
cd findCommand
```
3. Compile the program:
```bash
make
```## Usage
The basic syntax for using the find command is:
```bash
./find [file1] [file2] ... [fileN]
```### Arguments
- file1, file2, ..., fileN: The specific file names or patterns to search for. Wildcards (. and *) can be used to match multiple files.## Examples
Search for all files named "test.txt":
```bash
./find test.txt
```
Search for all files with names starting with "test":
```bash
/find test*
```
Search for all types of files with name "test":
```bash
/find test.*
```## Implementation Details
The program uses standard C libraries such as dirent.h for directory traversal.
The code is designed to be simple and demonstrate basic file search functionality.## License
This project is licensed under the [MIT License](LICENSE).