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

NAME

6       revtwoway - Reverse strings sample two-way processor extension
7

SYNOPSIS

9       @load "revtwoway"
10
11       BEGIN {
12           cmd = "/magic/mirror"
13           print "hello, world" |& cmd
14           cmd |& getline result
15           print result
16           close(cmd)
17       }
18

DESCRIPTION

20       The  revtwoway  extension adds a simple two-way processor that reverses
21       the characters in each line sent to it for reading back by the AWK pro‐
22       gram.   It's  main purpose is to show how to write a two-way extension,
23       although it may also be mildly amusing.
24

SEE ALSO

26       GAWK:  Effective   AWK   Programming,   filefuncs(3am),   fnmatch(3am),
27       fork(3am),   inplace(3am),  ordchr(3am),  readdir(3am),  readfile(3am),
28       revoutput(3am), rwarray(3am), time(3am).
29

AUTHOR

31       Arnold Robbins, arnold@skeeve.com.
32

COPYING PERMISSIONS

34       Copyright © 2012, 2013, Free Software Foundation, Inc.
35
36       Permission is granted to make and distribute verbatim  copies  of  this
37       manual  page  provided  the copyright notice and this permission notice
38       are preserved on all copies.
39
40       Permission is granted to copy and distribute modified versions of  this
41       manual  page  under  the conditions for verbatim copying, provided that
42       the entire resulting derived work is distributed under the terms  of  a
43       permission notice identical to this one.
44
45       Permission  is granted to copy and distribute translations of this man‐
46       ual page into another language, under the above conditions for modified
47       versions,  except that this permission notice may be stated in a trans‐
48       lation approved by the Foundation.
49
50
51
52Free Software Foundation          Jan 15 2013                   REVTWOWAY(3am)
Impressum