EnglishFrenchSpanish

OnWorks favicon

reformat - Online in the Cloud

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

This is the command reformat 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

PROGRAM:

NAME


reformat - tool to simple format plain ascii texts

SYNOPSIS


reformat [-h] [-j] [-l margin] [-p] [-w width]

DESCRIPTION


reformat is a simple tool to reformat plain texts. reformat reads from stdin and writes to
stdout.

Available options are:

-h prints usage information

-j switch justify mode: Each line of a paragraph will have the same width (see -w
option). To reach this, spaces (' ') will be added between words. Default: disabled

-l left-margin
Sets the left margin to left-margin. The margin is produced by left-margin spaces ('
'), no tabs will be used. Default: 0

-p Accept lines beginning with a whitespace as usual paragraphs, too.

-w width
Sets the paragraph width to width. No reformatted line will be longer than width (plus
defined margins) then. Default: 72

LIMITATIONS


· reformat isn't an intelligent program. It just reads a whole paragraph into a buffer
and then reformats it. The end of a paragraph is indicated by an empty line (may also
contain spaces or tabs) or at a line beginning with whitespaces (if you don't use -p
option).

Lines beginning with whitespaces are lines to keep untouched. Nothing happens with
them, unless you use -p option (as just mentioned).

· reformat doesn't look for hyphenation and hyphens at all. It won't make new lines when
reached a hyphen. reformat works word-by-word.

· reformat doesn't detect 'small paragraphs' (paragraphs without an empty line).

· Check for errors! If reformat detects a word with a length greater than the specified
width, it will abort.

· reformat has problems with control characters. Some text documents contain the ^L
character (0x0c), for example.

TODO


Planned features are:

· Fix some problems, see "LIMITATIONS".

· Add an option to declare a string that indicates "don't reformat" in the text. Would
be nice on reformatting emails, and don't touch the quoteas ('> '-lines).

· Add an option (e.g. -i) to keep indenting.

EXAMPLES


reformat < foo > bar
Reads text from foo, reformats and writes to bar.

reformat -l 15 -j -w 50 < foo
Nice justified, centered text from file foo on an 80x25 terminal.

Use reformat online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 2
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • 3
    Apache OpenOffice Extensions
    Apache OpenOffice Extensions
    The official catalog of Apache
    OpenOffice extensions. You'll find
    extensions ranging from dictionaries to
    tools to import PDF files and to connect
    with ext...
    Download Apache OpenOffice Extensions
  • 4
    MantisBT
    MantisBT
    Mantis is an easily deployable, web
    based bugtracker to aid product bug
    tracking. It requires PHP, MySQL and a
    web server. Checkout our demo and hosted
    offerin...
    Download MantisBT
  • 5
    LAN Messenger
    LAN Messenger
    LAN Messenger is a p2p chat application
    for intranet communication and does not
    require a server. A variety of handy
    features are supported including
    notificat...
    Download LAN Messenger
  • 6
    DrJava
    DrJava
    DrJava is a lightweight programming
    environment for Java designed to foster
    test-driven software development. It
    includes an intelligent program editor,
    an int...
    Download DrJava
  • More »

Linux commands

  • 1
    abiviewe
    abiviewe
    abiview - Display the trace in an ABI
    sequencer file ...
    Run abiviewe
  • 2
    abiword
    abiword
    abiword � flexible cross-platform word
    processor ...
    Run abiword
  • 3
    create_icons
    create_icons
    ctn_manpage - Generic CTN manual page
    DESCRIPTION: This is a generic manual
    package for a CTN program. All CTN
    programs will give their brief usage
    synopsis wh...
    Run create_icons
  • 4
    create_icons.94
    create_icons.94
    ctn_manpage - Generic CTN manual page
    DESCRIPTION: This is a generic manual
    package for a CTN program. All CTN
    programs will give their brief usage
    synopsis wh...
    Run create_icons.94
  • 5
    g.removegrass
    g.removegrass
    g.remove - Removes data base element
    files from the user�s current mapset
    using the search pattern. KEYWORDS:
    general, map management, remove ...
    Run g.removegrass
  • 6
    g.renamegrass
    g.renamegrass
    g.rename - Renames data base element
    files in the user�s current mapset.
    KEYWORDS: general, map management,
    rename ...
    Run g.renamegrass
  • More »

Ad