Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (34 sloc) 1.27 KB
opam-version: "2.0"
name: "get_line"
maintainer: ""
authors: "Francois Berenger"
homepage: ""
bug-reports: ""
dev-repo: "git://"
license: "GPL"
build: ["jbuilder" "build" "-p" name "-j" jobs]
depends: [
"dune" {build}
"batteries" {>= "2.6.0"}
"Robustly select lines from file; can replace the head and tail shell commands and do even more"
description: """
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"""
url {
src: ""
checksum: "md5=a3713e755fe3d7e01bc35db0df971614"