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" {< "2.0"}
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] (1 <= i [<= j] <= N; N = nb. lines in FILE)
17
18 -v invert the selection of lines (like 'grep -v')
19 --rand randomize selected lines before writing them out
20 -i <filename> where to read lines from (default=stdin)
21 -o <filename> where to write lines to (default=stdout)
22 {-r|--range} {+n|-n|i|i..j|i-j|i,j[,...]}: line selection policy;
23 (+n => top n lines;
24 -n => last n lines;
25 n => only line n;
26 i..j => lines i to j;
27 i:j => top i lines and last j lines;
28 i,j[,...] => only lines i,j,...
29 {-help|--help} Display this list of options"""
30url {
31 src: "https://github.com/UnixJunkie/get_line/archive/v5.0.0.tar.gz"
32 checksum: [
33 "sha256=04bea98a18ecc1020a9bdbc73ef112fd6e4bb334227fbeef69f4a9f7e7218afb"
34 "md5=8cb09f69fa976c87d27c5c406beed84c"
35 ]
36}