Skip to content

Command for finding files by name for GNU/Linux OS

License

Notifications You must be signed in to change notification settings

without-eyes/find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Command

This is a simple custom implementation of a find-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:
git clone https://github.com/without-eyes/findCommand.git
cd findCommand
  1. Compile the program:
make

Usage

The basic syntax for using the find command is:

./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":

./find test.txt

Search for all files with names starting with "test":

/find test*

Search for all types of files with name "test":

/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.

Releases

No releases published

Packages

No packages published