get_line

Robustly select lines from file; can replace the head and tail shell commands and do even more
Description

usage: get_line {--range|-r} {+n|-n|i|i..j|i,j[,...]} [-i FILE] [--rand] [-v] (1 <= i [<= j] <= N; N = nb. lines in FILE)

-v invert the selection of lines (like 'grep -v') --rand randomize selected lines before writing them out -i where to read lines from (default=stdin) -o where to write lines to (default=stdout) {-r|--range} {+n|-n|i|i..j|i,j[,...]}: line selection policy; (+n => top n lines; -n => last n lines; n => only line n; i..j => lines i to j; i,j[,...] => only lines i,j,... {-help|--help} Display this list of options

Install
Published
09 Oct 2018
Authors
Maintainers
Sources
v4.0.1.tar.gz
md5=a3713e755fe3d7e01bc35db0df971614
Dependencies
batteries >= "2.6.0"
dune < "2.0"
Reverse Dependencies