GithubHelp home page GithubHelp logo

keiranrowan / tiny-core Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 36 KB

Simple versions of coreutils and common Linux commands written in C

License: MIT License

C 95.58% Makefile 4.42%
coreutils tiny c cat wc true false hostname

tiny-core's Introduction

Tiny Core

Simple versions of coreutils and common linux commands written in C. Tiny may be a misnomer as my goal isn't an arbitrarily low line count or extreme independence from the standard library, but rather only implementing the basic features. Bells and whistles may be seperated into their own commands depending on their noteworthiness. These utilities are not meant to be a comprehensive rewrite of the GNU CoreUtils, but more as an exercise for myself using the C language. Feel free to fork, download, critique, or share any of these utilities. My goal is to have each utility follow the same general principle as far as command line usage: - for stdin and short flags for most options although there may be exceptions. -h and --help will show the help prompt for every command. Binaries are included in the repository since they aren't large by any means.

Commands

cat

Usage

$ cat [FILE]...

This one left it's flags at Berkeley.

wc

Usage

$ wc [-h|-w|-c|-l|-b] [FILE]...

-w prints word count. Uses the same definition as GNU wc: any non-zero length sequence of characters seperated by whitespace.

-c prints character count.

-l prints line count. \n is the newline delimiter.

-b prints byte count. 1 character = 1 byte. Includes spaces and special characters.

tiny-core's People

Contributors

keiranrowan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

tiny-core's Issues

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.