package get_line

All checked builds pass
  1. Overview
  2. Docs
Robustly select lines from file; can replace the head and tail shell commands and do even more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v7.0.0.tar.gz
sha256=40ae12a8abce20d7d33ab0ba539658787f0da4d90e6f6114d11dc714aa5c816d
md5=0b4a5754f63e8bb84fcd729a7b7d03e1

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 --NxCV several folds cross validation: cut input file into N partitions then create N traininig files and N test files (all other get_line options will be ignored) -i where to read lines from (default=stdin) -o where to write lines to (default=stdout) --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 => top i lines and last j lines; i,j[,...] => only lines i,j, ... -r alias for --range -help Display this list of options --help Display this list of options

Added to opam-repository:

README

get_line

output a single line or a range of lines from a given file

Dependencies (2)

  1. batteries >= "2.6.0"
  2. dune >= "1.11"

Dev Dependencies

None

Optional Dependencies

None

Used by (1)

  1. hts_shrink

Conflicts

None

Build status

Results of building get_line with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
7.0.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure