Skip to content

lrth06/cat_in_x_flavors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAT IN X FLAVORS

The goal of this repository is to replicate the familiar "cat" command in as many languages as I can. Full, and additional functionality will be added, but currently the models simply read the file contents to a string in the console, warn you in the event that there was no file given, or if the file you've specified cannot be opened.

Usage

Installation Options

git clone https://github.com/lrth06/cat_in_x_flavors.git #HTTPS
# OR
git clone [email protected]:lrth06/cat_in_x_flavors.git #SSL
cd cat_in_x_flavors
# OPTIONAL (recommended) - Run in docker
docker build . -t lrth06/catinx
docker run  -it -v $(pwd):/github.com/lrth06/app lrth06/catinx

languages

  • Go

cd golang
go build  -o ./
gocat /path/to/your/file
  • Python

cd python
python3 pycat.py /path/to/your/file
  • NodeJS

cd nodejs
npm install -g .
nodecat /path/to/your/file
  • C

cd c
gcc ccat.c -o ccat
./ccat /path/to/your/file
  • C++

cd cpp
g++ -o cppcat ./cppcat.cpp
./cppcat /path/to/your/file
  • Rust

cd rust
cargo build
cargo run /path/to/your/file
  • Perl

cd perl
perl perlcat.pl /path/to/your/file
  • Ruby (in progress)