Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

C CLI Utilities (Cat & Grep)

C Standard Tests Static Analysis

High-performance custom implementations of standard Unix cat and grep utilities.


🎯 Overview

The project features a modular architecture with a shared common module for error handling. It supports standard POSIX flags as well as GNU long options.

🚀 Quick Start

# Clone the repository
git clone https://github.com/HimeNSK/c_cli_utils.git
cd c_cli_utils

# Build and test c_cat
cd src/cat && make && ./test_cat.sh

# Build and test c_grep
cd ../../src/grep && make && ./test_grep.sh
  • c_cat: 16 tests
  • c_grep: 23 tests

📂 Project Structure

.
└── src
    ├── cat
    │   ├── Makefile
    │   ├── c_cat.c      # Core cat logic
    │   ├── main.c       # Argument parsing
    │   └── test_cat.sh  # Integration tests
    ├── common
    │   ├── common.c     # Shared helpers (e.g., print_error)
    │   └── common.h
    └── grep
        ├── Makefile
        ├── c_grep.c     # Core grep logic
        ├── main.c       # Argument parsing
        └── test_grep.sh # Integration tests

🇷🇺 Утилиты CLI на C (Русский)

🎯 Обзор

Модульная архитектура с общим модулем common для обработки ошибок. Поддерживаются стандартные флаги POSIX и длинные опции GNU.

  • c_cat: 16 тестов
  • c_grep: 23 теста

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages