get_lineversion
Robustly select lines from file; can replace the head and tail shell commands and do even more
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 <filename> where to read lines from (default=stdin) -o <filename> 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
Author | Francois Berenger |
---|---|
License | GPL-1.0-or-later |
Published | |
Homepage | https://github.com/UnixJunkie/get_line |
Issue Tracker | https://github.com/UnixJunkie/get_line/issues |
Maintainer | unixjunkie@sdf.org |
Dependencies | |
Source [http] | https://github.com/UnixJunkie/get_line/archive/v4.0.1.tar.gz sha256=f1c6c9b83b95eceb300c6b78be7d5db4c21a94940532953b964e4f2b4821f44c md5=a3713e755fe3d7e01bc35db0df971614 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/get_line/get_line.4.0.1/opam |
Required by
- hts_shrinkwith-test