How iskandar220302/cat-grep works
This repository provides two independent Unix-style text utilities: s21_cat transforms and prints input, while s21_grep selects matching lines or match summaries. Their principal workflows begin with command-line options, then read standard input or named files and write results to standard output. The grep branch also supports pattern files and several output modes. The graph follows the sampled implementations; no README was provided, so it does not add undocumented capabilities or connections.
Main entry points: s21_grep.c File matcher · s21_cat.c Cat entry
Components 14
Cat utility
- Cat entry
cat-grep/cat/s21_cat.c - Flag parser
cat-grep/cat/s21_cat.c - Input renderer
cat-grep/cat/s21_cat.c
Grep utility
- Grep entry
cat-grep/grep/s21_grep.c - Argument parser
cat-grep/grep/s21_grep.c - Pattern loader
cat-grep/grep/s21_grep.c - File matcher
cat-grep/grep/s21_grep.c - Match printer
cat-grep/grep/s21_grep.c
Other components
- CLI user
- Text input
- Printed text
- Text input
- Pattern file
- Match output
Connections 14
- CLI user → Cat entry: invokes
cat-grep/cat/s21_cat.c - Cat entry → Flag parser: parses flags
cat-grep/cat/s21_cat.c - Cat entry → Input renderer: starts printing
cat-grep/cat/s21_cat.c - Input renderer → Text input: reads
cat-grep/cat/s21_cat.c - Input renderer → Printed text: prints
cat-grep/cat/s21_cat.c - CLI user → Grep entry: invokes
cat-grep/grep/s21_grep.c - Grep entry → Argument parser: parses arguments
cat-grep/grep/s21_grep.c - Argument parser → Pattern loader: loads patterns
cat-grep/grep/s21_grep.c - Grep entry → File matcher: processes files
cat-grep/grep/s21_grep.c - File matcher → Text input: reads
cat-grep/grep/s21_grep.c - Pattern loader → Pattern file: reads
cat-grep/grep/s21_grep.c - File matcher → Match printer: prints matches
cat-grep/grep/s21_grep.c - File matcher → Match output: prints summaries
cat-grep/grep/s21_grep.c - Match printer → Match output: writes matches
cat-grep/grep/s21_grep.c