Skip to content
/ cat.c Public

A simple version of the "cat" tool for the Linux command line

License

Notifications You must be signed in to change notification settings

carlouni/cat.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simplified version of the cat program. It should be able to compile on Linux Debian and derivatives.
It may also compile on other systems as I tried to comply with the C standards.

Used as reference and for inspiration the links below and other sources from the GNU project. However, I believe
my version is easier to understand.

http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/cat.c
http://www.opensource.apple.com/source/text_cmds/text_cmds-71/cat/cat.c

Obs. This program has been done as part of an assignment at Griffith University - Australia thus be aware not to use
the code as part of your assignment but as a usefull reference.

### Building executables on Linux:

    1.- Make sure the system has the 'gcc compiler' and 'make'.
    
    2.- From the Linux terminal execute the following commands in the repository's root directory:
        $ make

### Running the programs:
    cat:
    ---
    1.- $ ./cat [OPTION]... [FILE]...
    2.- All cat options were implemented.

    Input entered from stdin:
    1.- If no file is introduced, the data input is taken from the stdin.
    3.- Program displays data read from stdin and display results based on the
        above options.
    4.- Control D to exit.

About

A simple version of the "cat" tool for the Linux command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published