-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
36 lines (35 loc) · 1.4 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
opam-version: "2.0"
maintainer: "unixjunkie@sdf.org"
authors: "Francois Berenger"
homepage: "https://github.com/UnixJunkie/get_line"
bug-reports: "https://github.com/UnixJunkie/get_line/issues"
dev-repo: "git+https://github.com/UnixJunkie/get_line"
license: "GPL-1.0-or-later"
build: ["dune" "build" "-p" name "-j" jobs]
depends: [
"dune" {< "2.0"}
"batteries" {>= "2.6.0"}
]
synopsis:
"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,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|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 => top i lines and last j lines;
i,j[,...] => only lines i,j,...
{-help|--help} Display this list of options"""
url {
src: "https://github.com/UnixJunkie/get_line/archive/v5.0.0.tar.gz"
checksum: [
"sha256=04bea98a18ecc1020a9bdbc73ef112fd6e4bb334227fbeef69f4a9f7e7218afb"
"md5=8cb09f69fa976c87d27c5c406beed84c"
]
}