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
    Psi
    Psi
    Psi is cross-platform powerful XMPP
    client designed for experienced users.
    There are builds available for MS
    Windows, GNU/Linux and macOS.. Audience:
    End Users...
    Download Psi
  • 2
    Blobby Volley 2
    Blobby Volley 2
    Official continuation of the famous
    Blobby Volley 1.x arcade game..
    Audience: End Users/Desktop. User
    interface: OpenGL, SDL. Programming
    Language: C++, Lua. C...
    Download Blobby Volley 2
  • 3
    SuiteCRM
    SuiteCRM
    SuiteCRM is the award-winning Customer
    Relationship Management (CRM)
    application brought to you by authors
    and maintainers, SalesAgility. It is the
    world�s mos...
    Download SuiteCRM
  • 4
    Poweradmin
    Poweradmin
    Poweradmin is a web-based DNS
    administration tool for PowerDNS server.
    The interface has full support for most
    of the features of PowerDNS. It has full
    support...
    Download Poweradmin
  • 5
    Gin Web Framework
    Gin Web Framework
    Gin is an incredibly fast web framework
    written in Golang that can perform up to
    40 times faster, thanks to its
    martini-like API and custom version of
    httprout...
    Download Gin Web Framework
  • 6
    CEREUS LINUX
    CEREUS LINUX
    CEREUS LINUX basado en MX LINUX con
    varios entornos de escritorios. This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/cereu...
    Download CEREUS LINUX
  • More »

Linux commands

  • 1
    aa-clickquery
    aa-clickquery
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    --click-fra...
    Run aa-clickquery
  • 2
    aa-exec-click
    aa-exec-click
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpio
    cpio
    cpio - copy files to and from archives ...
    Run cpio
  • 4
    cpipe
    cpipe
    cpipe - copy stdin to stdout while
    counting bytes and reporting progress ...
    Run cpipe
  • 5
    FvwmSave
    FvwmSave
    FvwmSave - the Fvwm desktop-layout
    saving module ...
    Run FvwmSave
  • 6
    FvwmSave1
    FvwmSave1
    FvwmSave - the FVWM desktop-layout
    saving module ...
    Run FvwmSave1
  • More »

Ad