The cutter package

[ Tags: bsd3, console, program ] [ Propose Tags ]

Cut a file into chunks according to a position list and concatenate the chunks. The chunks must not overlap and must be in increasing order.

Use it this way:

cutter positions.csv <datain >dataout

The file positions.csv must be a comma separated spreadsheet file (CSV), where the first column contains the chunk beginnings and the second column contains the pause beginnings. A pause begins one byte after a chunk ends. The other columns are ignored and may contain annotations of the chunks.

The positions file may also contain line numbers. In this case you run the command this way:

cutter -l positions.csv <datain >dataout

Example: remove selected attachments from e-mails in mbox file using the lsmbox command from http://hackage.haskell.org/package/mbox-utility.

Properties

Versions 0.0
Dependencies base (>=4.2 && <5), bytestring (>=0.9.1 && <0.11), explicit-exception (>=0.1.6 && <0.2), spreadsheet (>=0.1.3 && <0.2), utility-ht (>=0.0.7 && <0.1) [details]
License BSD3
Author Henning Thielemann
Maintainer haskell@henning-thielemann.de
Category Console
Source repository this: darcs get http://hub.darcs.net/thielema/cutter/ --tag 0.0
head: darcs get http://hub.darcs.net/thielema/cutter/
Uploaded Sun Mar 26 09:58:38 UTC 2017 by HenningThielemann
Distributions LTSHaskell:0.0, NixOS:0.0, Stackage:0.0, Tumbleweed:0.0
Executables cutter
Downloads 124 total (11 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2017-03-26 [all 3 reports]
Hackage Matrix CI

Downloads

Maintainer's Corner

For package maintainers and hackage trustees