Giter Club home page Giter Club logo

vas_cat-and-vas_grep's Introduction

Vas Grep, Vas Cat

Here are the alternatives I wrote from scratch to the original system utilities cat and grep.

The code in this project demonstrates my programming skills at the beginning of my journey in the C language :) , so the code may be a bit brute-force. However, the functionality works as intended and has passed an auto-check at Sber's School of Programming 21 (School 42 alternative), auto-check (as well as my own tests) also included valgrind test, and no leaks were discovered.

To test and run:

Navigate to the grep or cat folder in the terminal, run make to build the vas_cat or vas_grep file. They work identically to similar system utilities on Unix systems. For example, run:

./vas_cat Makefile

or

./vas_grep int vas_grep.c

The library has been tested and works on Linux, Mac, and WSL.

Tests were also written by me, and support quiet mode and changing parameters for custom testing. To test with custom tests that check the output equality with the original system functions, run "make test".


Здесь написанные мной с нуля альтернативы оригинальным системным утилитам cat и grep.

Код в этом проекте показывает мои навыки программирования на начале пути в языке С :) , поэтому здесь кошмарный брутфорсный код. Однако функционал работает как надо и прошёл авто-проверку в Школе Программирования 21 от Сбера, авто-проверка (как и мои личные тесты) включала в себя тест на valgrind и ликов не было обнаружено.

Для тестирования и запуска:

Заходим в терминале в папку src и потом в grep или cat соответственно, пишем make чтобы забилдился файл vas_cat или vas_grep, они работают идентично подобным системным утилитам на unix системах, например пишем

./vas_cat Makefile

или

./vas_grep int vas_grep.c

Библиотека протестирована и работает на Linux, Mac и WSL.

Также мной были написаны тесты, они поддерживают тихий режим, а также изменение параметров для настраиваемого тестирования. Для тестирования самописными тестами которые проверяют идентичность вывода с оригинальными функциями в системе вводим make test.

vas_cat-and-vas_grep's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.