1REVOUTPUT(3am)             GNU Awk Extension Modules            REVOUTPUT(3am)
2
3
4

NAME

6       revoutput - Reverse output strings sample extension
7

SYNOPSIS

9       @load "revoutput"
10
11       BEGIN { REVOUT = 1 }    # Reverse all output strings
12

DESCRIPTION

14       The  revoutput extension adds a simple output wrapper that reverses the
15       characters in each output line.  It's main purpose is to  show  how  to
16       write  an  output  wrapper,  although  it may be mildly amusing for the
17       unwary.
18

EXAMPLE

20       @load "revoutput"
21
22       BEGIN {
23           REVOUT = 1
24           print "hello, world" > "/dev/stdout"
25       }
26
27       The output from this program is:
28
29       dlrow ,olleh
30

BUGS

32       This extension does not affect the default standard output.
33

SEE ALSO

35       GAWK:  Effective   AWK   Programming,   filefuncs(3am),   fnmatch(3am),
36       fork(3am),   inplace(3am),  ordchr(3am),  readdir(3am),  readfile(3am),
37       rwarray(3am), time(3am).
38

AUTHOR

40       Arnold Robbins, arnold@skeeve.com.
41

COPYING PERMISSIONS

43       Copyright © 2012, 2013, 2018, Free Software Foundation, Inc.
44
45       Permission is granted to make and distribute verbatim  copies  of  this
46       manual  page  provided  the copyright notice and this permission notice
47       are preserved on all copies.
48
49       Permission is granted to copy and distribute modified versions of  this
50       manual  page  under  the conditions for verbatim copying, provided that
51       the entire resulting derived work is distributed under the terms  of  a
52       permission notice identical to this one.
53
54       Permission  is granted to copy and distribute translations of this man‐
55       ual page into another language, under the above conditions for modified
56       versions,  except that this permission notice may be stated in a trans‐
57       lation approved by the Foundation.
58
59
60
61Free Software Foundation          Feb 21 2018                   REVOUTPUT(3am)
Impressum