Skip to content
Martin Asser Hansen edited this page Oct 1, 2015 · 6 revisions

#summary Count records in the stream and prints a dot for each number of records and a record count per 100 dots.

Biopiece: progress_meter

Description

[progress_meter] count the number of records in the stream and outputs a dot to STDERR for a fixed number of records that can be specified with the -c switch. For each 100 dots the number of processed records is output on a new line.

Usage

... | progress_meter [options]

Options

[-?         | --help]               #  Print full usage description.
[-x         | --no_stream]          #  Do not emit records.
[-c <uint>  | --count=<uint>]       #  Number of records per dot    -  Default=1000
[-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 monitor the progress of records processed we use [progress_meter] like this:

... | progress_meter

    0 ....................................................................................................
10000 ....................................................................................................
20000 ............................................................................

See also

[count_records]

Author

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

[email protected]

September 2010

License

GNU General Public License version 2

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

Help

[progress_meter] is part of the Biopieces framework.

http://www.biopieces.org

Clone this wiki locally