cutter-0.0: cutter.cabal
Name: cutter
Version: 0.0
Synopsis: Cut files according to a position list
Description:
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>.
License: BSD3
License-File: LICENSE
Author: Henning Thielemann
Maintainer: haskell@henning-thielemann.de
Category: Console
Build-Type: Simple
Cabal-Version: >=1.8
Source-Repository this
Tag: 0.0
Type: darcs
Location: http://hub.darcs.net/thielema/cutter/
Source-Repository head
Type: darcs
Location: http://hub.darcs.net/thielema/cutter/
Executable cutter
Main-Is: src/Main.hs
GHC-Options: -Wall
Build-Depends:
spreadsheet >=0.1.3 && <0.2,
explicit-exception >=0.1.6 && <0.2,
bytestring >=0.9.1 && <0.11,
utility-ht >=0.0.7 && <0.1,
base >=4.2 && <5