The cutter package

[Tags:bsd3, program]

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


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
Category Console
Source repository this: darcs get --tag 0.0
head: darcs get
Uploaded Sun Mar 26 09:58:38 UTC 2017 by HenningThielemann
Distributions LTSHaskell:0.0, NixOS:0.0, Stackage:0.0, Tumbleweed:0.0
Downloads 43 total (20 in the last 30 days)
0 []
Status Docs not available [build log]
Last success reported on 2017-03-26 [all 3 reports]


Maintainer's Corner

For package maintainers and hackage trustees