Skip to content
Martin Asser Hansen edited this page Oct 2, 2015 · 5 revisions

Biopiece: head_records

Description

head_records truncate the stream after a number of records (default 10), which is useful if you want to inspect the output of an analysis to check that your pipeline is working correctly before starting on the real thing. Note that the biopieces of the read_* type all have the -n switch which works similarly.

Usage

... | head_records [options]

Options

[-?         | --help]               #  Print full usage description.
[-n <uint>  | --num=<uint>]         #  Number of records to emit    -  Default=10
[-I <file!> | --stream_in=<file!>]  #  Read input from stream file  -  Default=STDIN
[-O <file>  | --stream_out=<file>]  #  Write output to stream file  -  Default=STDOUT
[-v         | --verbose]            #  Verbose output.

Examples

To emit the first 40 records of the stream, do:

... | head_records -n 40

See also

Author

Martin Asser Hansen - Copyright (C) - All rights reserved.

mail@maasha.dk

August 2007

License

GNU General Public License version 2

http://www.gnu.org/copyleft/gpl.html

Help

head_records is part of the Biopieces framework.

http://www.biopieces.org

Clone this wiki locally