OnWorks favicon

g3cat - Online in the Cloud

Run g3cat in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command g3cat that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



g3cat - concatenate multiple g3 documents


g3cat [-l] [-a] g3-file1 ...


g3cat concatenates g3 files. These can either be 'raw', that is, bitmaps packed according
to the CCITT T.4 standard for one-dimensional bitmap encoding, or 'digifax' files, created
by GNU's GhostScript package with the digifax drivers. Its output is a concatenation of
all the input files, in raw G3 format, with two white lines in between.

If a - is given as input file, stdin is used.

If the input data is malformed, a warning is printed to stderr, and the output file will
have a blank line at this place.


-l separate files with a one-pixel wide black line.

-h <blank lines>
specifies the number of blank lines g3cat should prepend to each page. Default is

-L <lines>
limit lenght of output page to maximum <lines> lines.


-w <width>
specifies the desired page width in pixels per line. Default is 1728 PELs, and this
is mandatory if you want to send the fax to a standard fax machine. If one of the
input files doesn't match this line width (for example because it was created by a
broken G3 creator), a warning is printed, and the line width is transparently

-a byte-align the end-of-line codes (EOL) in the file. Every EOL will end at a byte
boundary, that is, with a 01 byte.

-p <pad>
specifies a minimum number of bytes that each output line must be padded to.
Padding is done with 0-bits before the EOL code.

-R suppress output of end-of-page code (RTC).


The following example will put a header line on a given g3 page, 'page1' and put the
result into 'page2':

echo '$header' | pbmtext | pbm2g3 | g3cat - page1 >page2

Use g3cat online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Boost C++ Libraries
    Boost C++ Libraries
    Boost provides free portable
    peer-reviewed C++ libraries. The
    emphasis is on portable libraries which
    work well with the C++ Standard Library.
    See http://www.bo...
    Download Boost C++ Libraries
  • 2
    VirtualGL redirects 3D commands from a
    Unix/Linux OpenGL application onto a
    server-side GPU and converts the
    rendered 3D images into a video stream
    with which ...
    Download VirtualGL
  • 3
    Library to enable user space
    application programs to communicate with
    USB devices. Audience: Developers, End
    Users/Desktop. Programming Language: C.
    Download libusb
  • 4
    SWIG is a software development tool
    that connects programs written in C and
    C++ with a variety of high-level
    programming languages. SWIG is used with
    Download SWIG
  • 5
    WooCommerce Nextjs React Theme
    WooCommerce Nextjs React Theme
    React WooCommerce theme, built with
    Next JS, Webpack, Babel, Node, and
    Express, using GraphQL and Apollo
    Client. WooCommerce Store in React(
    contains: Products...
    Download WooCommerce Nextjs React Theme
  • 6
    Package repo for ArchLabs This is an
    application that can also be fetched
    It has been hosted in OnWorks in...
    Download archlabs_repo
  • More »

Linux commands