package get_line

  1. Overview
  2. Docs
robustly select lines from file; can replace the head and tail shell commands and do even more

Install

Dune Dependency

Authors

Maintainers

Sources

v4.0.0.tar.gz
sha256=a71bc3c11c94fff1934c1011ea7224747c8f2c8125311e2dce1908a6258261e0
md5=ed9dcadcd1ce570b2c83dc8cc40d2b03

Description

usage: 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 where to read lines from (default=stdin) -o 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

Published: 24 Apr 2018

README

get_line

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

Dependencies (3)

  1. batteries >= "2.6.0"
  2. jbuilder >= "1.0+beta7"
  3. ocaml

Dev Dependencies

None

Used by (1)

  1. hts_shrink

Conflicts

None

OCaml

Innovation. Community. Security.