Crates.io | rust-cat |
lib.rs | rust-cat |
version | 0.2.0 |
source | src |
created_at | 2021-08-06 18:42:36.766604 |
updated_at | 2021-08-06 18:42:36.766604 |
description | A Rust rewrite of UNIX cat |
homepage | |
repository | |
max_upload_size | |
id | 432545 |
size | 46,184 |
A UNIX style cat remake with rust, mainly for windows and other environments where cat isn't available. This isnt the whole implementation of cat, I'm doing this to learn rust and might add all the features in the future soon
This requires the rust toolchain, mainly cargo.
Clone the project and then run
$ cd cat && cargo install --path .
or you can do
$ cargo install --git https://github.com/Blaze2305/cat
This builds the binary for your architecture and stores in ~/.cargo so that you can use it throughout your system.
cat [FLAGS] [FILES]...
FLAGS:
- -h, --help Prints help information
- -n, --num print the line number for each file
- -b, --number-nonblank number non empty output lines, overrides -n
- -E, --show-ends Show $ at the end of each line
- -t, --show-tabs sdiaply TAB characters as ^I
- -s, --squeeze-blank suppress repeated empty output lines
- -V, --version Prints version information
ARGS:
- <FILES>... List of files to cat