Crates.io | catlines |
lib.rs | catlines |
version | 1.0.4 |
source | src |
created_at | 2017-06-26 04:00:24.922667 |
updated_at | 2017-06-28 01:54:58.43767 |
description | Controls file output with line ranges! |
homepage | |
repository | https://github.com/cheukyin699/rust-lines |
max_upload_size | |
id | 20732 |
size | 39,062 |
It's like cat, but better!
catlines
takes a file name and the range of lines (inclusive) and prints that
section of the file to standard output. Useful if you want to pipe to your
clipboard, or something like that.
Yes. I know I could have sed -n
it, but hey, everyone should learn rust
,
right?
Added options include displaying the line number, and some customizations on how the line number is displayed.
Usage: catlines [options] <file> <start> <stop>
catlines (--help | --version)
Description:
Prints only said section from the file, ranging [start,stop] (inclusive at
both ends).
Options:
-h, --help Display this help and exits
--version Display version information
-l, --lines Display corresponding line number
-s, --spaces S Padding for line number