Brist0l / cat_clone

clone of cat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cat's clone

Cat's clone is a the cat command at a very basic level.

Installation

There are 2 ways of installing it. The first one involves compiling from source and the other is just moving the binary to the desired location that is in most cases[/usr/bin/]

To download the repo use git or download it as a zip

downloading using git:

git clone https://github.com/mrHola21/cat_clone.git

cd cat_clone/

To compile from source use your preffered compiler. In this case I will be using gcc

gcc src/main.c -o bin/pussy

To move the bin to the desired location in this case [/usr/bin/]

# mv bin/pussy usr/bin/

Usage

This will print the contents of the file

pussy {file}

You can also print the contents of multiple files using

pussy {file} {file1} {file2}

You can also add the clear flag by using -c

pussy {file} -c 

Integrating it with other tools

*Would need exteral tools

This will print coloured text

pussy {file} | lolcat

This will ease your viewing with big files

pussy {file} | less

This is for filtering contents

pussy {file} | grep lol

Diffrence

cat does not tell the number of words but this does :)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPL[https://www.gnu.org/licenses/gpl-3.0.html]

About

clone of cat

License:GNU General Public License v3.0


Languages

Language:C 100.0%