this repo has no description
1opam-version: "2.0"
2maintainer: "unixjunkie@sdf.org"
3authors: "Francois Berenger"
4homepage: "https://github.com/UnixJunkie/get_line"
5bug-reports: "https://github.com/UnixJunkie/get_line/issues"
6dev-repo: "git+https://github.com/UnixJunkie/get_line"
7license: "GPL-1.0-or-later"
8build: ["jbuilder" "build" "-p" name "-j" jobs]
9depends: [
10 "ocaml"
11 "jbuilder" {>= "1.0+beta7"}
12 "batteries" {>= "2.6.0"}
13]
14synopsis:
15 "robustly select lines from file; can replace the head and tail shell commands and do even more"
16description: """
17usage:
18get_line {--range|-r} {+n|-n|i|i..j|i,j[,...]} [-i FILE] [--rand] [-v] (1 <= i [<= j] <= N; N = nb. lines in FILE)
19
20 -v invert the selection of lines (like 'grep -v')
21 --rand randomize selected lines before writing them out
22 -i <filename> where to read lines from (default=stdin)
23 -o <filename> where to write lines to (default=stdout)
24 {-r|--range} {+n|-n|i|i..j|i,j[,...]}: line selection policy;
25 (+n => top n lines;
26 -n => last n lines;
27 n => only line n;
28 i..j => lines i to j;
29 i,j[,...] => only lines i,j,...
30 {-help|--help} Display this list of options"""
31url {
32 src: "https://github.com/UnixJunkie/get_line/archive/v4.0.0.tar.gz"
33 checksum: [
34 "sha256=a71bc3c11c94fff1934c1011ea7224747c8f2c8125311e2dce1908a6258261e0"
35 "md5=ed9dcadcd1ce570b2c83dc8cc40d2b03"
36 ]
37}