Crates.io | elk |
lib.rs | elk |
version | 0.3.1 |
source | src |
created_at | 2021-06-23 14:46:40.368166 |
updated_at | 2021-06-23 14:52:33.214139 |
description | elk - a cat alternative written in rust |
homepage | |
repository | https://github.com/macmoritz/elk |
max_upload_size | |
id | 413953 |
size | 66,483 |
elk - a powerful cat alternative written in rust
elk is a replacement for the 'cat' command
elks features include
elk [FLAGS] [OPTIONS] <path>
FLAGS:
-h, --help Prints help information
-n, --line_numbers Print line numbers
-q, --quiet Do not print the file contents
-e, --show-ends Print $ at EOL
-s, --statistics Print statistics (count of lines, characters and uni-characters, actual size of file) at the end of the file
--size print apparent sizes, rather than disk usage
-V, --version Prints version information
OPTIONS:
-l, --lines <n:m> Print a specified range of lines [default: :]
ARGS:
<path> Give me a file
cargo install elk
install rustc and cargo
cd /tmp
git clone https://github.com/macmoritz/elk.git
cd /tmp/elk
cargo build --release
cd target/release
./elk
To install elk locally
cd /tmp/elk
cargo install --path .
and add this line to your .bashrc or .zshrc
export PATH=$PATH:$HOME/.cargo/bin
in .zshrc or .bashrc
alias cat='elk'
https://github.com/TeXitoi/structopt
https://github.com/mistodon/config_struct
https://github.com/serde-rs/serde
https://github.com/dtolnay/serde-yaml
https://github.com/eminence/terminal-size
https://github.com/freaky/rust-filesize
https://github.com/mackwic/colored