cutter: Cut files according to a position list

[ 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.

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0
Dependencies base (>=4.2 && <5), bytestring (>=0.9.1 && <0.13), explicit-exception (>=0.1.6 && <0.3), spreadsheet (>=0.1.3 && <0.2), utility-ht (>=0.0.7 && <0.1) [details]
License BSD-3-Clause
Author Henning Thielemann
Maintainer haskell@henning-thielemann.de
Revised Revision 2 made by HenningThielemann at 2023-07-17T10:59:03Z
Category Console
Source repo this: darcs get http://hub.darcs.net/thielema/cutter/ --tag 0.0
head: darcs get http://hub.darcs.net/thielema/cutter/
Uploaded by HenningThielemann at 2017-03-26T09:58:38Z
Distributions LTSHaskell:0.0, NixOS:0.0, Stackage:0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Executables cutter
Downloads 1323 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2017-03-26 [all 3 reports]