Blame extension/revoutput.3am

Packit 575503
.TH REVOUTPUT 3am "Aug 02 2015" "Free Software Foundation" "GNU Awk Extension Modules"
Packit 575503
.SH NAME
Packit 575503
revoutput \- Reverse output strings sample extension
Packit 575503
.SH SYNOPSIS
Packit 575503
.ft CW
Packit 575503
@load "revoutput"
Packit 575503
.sp
Packit 575503
BEGIN { REVOUT = 1 }    # Reverse all output strings
Packit 575503
.ft R
Packit 575503
.SH DESCRIPTION
Packit 575503
The
Packit 575503
.I revoutput
Packit 575503
extension
Packit 575503
adds a simple output wrapper that reverses the characters in each output
Packit 575503
line.
Packit 575503
It's main purpose is to show how to write an output wrapper, although
Packit 575503
it may be mildly amusing for the unwary.
Packit 575503
.\" .SH BUGS
Packit 575503
.SH EXAMPLE
Packit 575503
.ft CW
Packit 575503
.nf
Packit 575503
@load "revoutput"
Packit 575503
Packit 575503
BEGIN {
Packit 575503
    REVOUT = 1
Packit 575503
    print "hello, world" > "/dev/stdout"
Packit 575503
}
Packit 575503
.fi
Packit 575503
.ft R
Packit 575503
.PP
Packit 575503
The output from this program is:
Packit 575503
.PP
Packit 575503
.ft CW
Packit 575503
.nf
Packit 575503
dlrow ,olleh
Packit 575503
.fi
Packit 575503
.ft R
Packit 575503
.SH BUGS
Packit 575503
This extension does not affect the default standard output.
Packit 575503
.SH "SEE ALSO"
Packit 575503
.IR "GAWK: Effective AWK Programming" ,
Packit 575503
.IR filefuncs (3am),
Packit 575503
.IR fnmatch (3am),
Packit 575503
.IR fork (3am),
Packit 575503
.IR inplace (3am),
Packit 575503
.IR ordchr (3am),
Packit 575503
.IR readdir (3am),
Packit 575503
.IR readfile (3am),
Packit 575503
.IR rwarray (3am),
Packit 575503
.IR time (3am).
Packit 575503
.SH AUTHOR
Packit 575503
Arnold Robbins,
Packit 575503
.BR arnold@skeeve.com .
Packit 575503
.SH COPYING PERMISSIONS
Packit 575503
Copyright \(co 2012, 2013,
Packit 575503
Free Software Foundation, Inc.
Packit 575503
.PP
Packit 575503
Permission is granted to make and distribute verbatim copies of
Packit 575503
this manual page provided the copyright notice and this permission
Packit 575503
notice are preserved on all copies.
Packit 575503
.ig
Packit 575503
Permission is granted to process this file through troff and print the
Packit 575503
results, provided the printed document carries copying permission
Packit 575503
notice identical to this one except for the removal of this paragraph
Packit 575503
(this paragraph not being relevant to the printed manual page).
Packit 575503
..
Packit 575503
.PP
Packit 575503
Permission is granted to copy and distribute modified versions of this
Packit 575503
manual page under the conditions for verbatim copying, provided that
Packit 575503
the entire resulting derived work is distributed under the terms of a
Packit 575503
permission notice identical to this one.
Packit 575503
.PP
Packit 575503
Permission is granted to copy and distribute translations of this
Packit 575503
manual page into another language, under the above conditions for
Packit 575503
modified versions, except that this permission notice may be stated in
Packit 575503
a translation approved by the Foundation.
Packit 575503
.\" vim: set filetype=nroff :