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: ["dune" "build" "-p" name "-j" jobs]
9depends: [
10 "dune" {>= "1.11"}
11 "batteries" {>= "2.6.0"}
12]
13synopsis:
14 "Robustly select lines from file; can replace the head and tail shell commands and do even more"
15description: """usage:
16get_line {--range|-r} {+n|-n|i|i..j|i:j|i,j[,...]} [-i FILE] [--rand] [-v]
17 (1 <= i [<= j] <= N; N = nb. lines in FILE)
18 -v invert the selection of lines (like 'grep -v')
19 --rand randomize selected lines before writing them out
20 --NxCV <int> several folds cross validation: cut input file into N
21 partitions then create N traininig files and N test files
22 (all other get_line options will be ignored)
23 -i <filename> where to read lines from (default=stdin)
24 -o <filename> where to write lines to (default=stdout)
25 --range {+n|-n|i|i..j|i,j[,...]}: line selection policy;
26 (+n => top n lines;
27 -n => last n lines;
28 n => only line n;
29 i..j => lines i to j;
30 i:j => top i lines and last j lines;
31 i,j[,...] => only lines i,j, ...
32 -r alias for --range
33 -help Display this list of options
34 --help Display this list of options"""
35url {
36 src: "https://github.com/UnixJunkie/get_line/archive/v7.0.0.tar.gz"
37 checksum: [
38 "sha256=40ae12a8abce20d7d33ab0ba539658787f0da4d90e6f6114d11dc714aa5c816d"
39 "md5=0b4a5754f63e8bb84fcd729a7b7d03e1"
40 ]
41}