| 1 |
.TH REVTWOWAY 3am "Feb 21 2018" "Free Software Foundation" "GNU Awk Extension Modules" |
| 2 |
.SH NAME |
| 3 |
revtwoway \- Reverse strings sample two-way processor extension |
| 4 |
.SH SYNOPSIS |
| 5 |
.ft CW |
| 6 |
@load "revtwoway" |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
BEGIN { |
| 10 |
cmd = "/magic/mirror" |
| 11 |
print "hello, world" |& cmd |
| 12 |
cmd |& getline result |
| 13 |
print result |
| 14 |
close(cmd) |
| 15 |
} |
| 16 |
.fi |
| 17 |
.ft R |
| 18 |
.SH DESCRIPTION |
| 19 |
The |
| 20 |
.I revtwoway |
| 21 |
extension |
| 22 |
adds a simple two-way processor that reverses the characters |
| 23 |
in each line sent to it for reading back by the AWK program. |
| 24 |
It's main purpose is to show how to write a two-way extension, although |
| 25 |
it may also be mildly amusing. |
| 26 |
.\" .SH BUGS |
| 27 |
.SH "SEE ALSO" |
| 28 |
.IR "GAWK: Effective AWK Programming" , |
| 29 |
.IR filefuncs (3am), |
| 30 |
.IR fnmatch (3am), |
| 31 |
.IR fork (3am), |
| 32 |
.IR inplace (3am), |
| 33 |
.IR ordchr (3am), |
| 34 |
.IR readdir (3am), |
| 35 |
.IR readfile (3am), |
| 36 |
.IR revoutput (3am), |
| 37 |
.IR rwarray (3am), |
| 38 |
.IR time (3am). |
| 39 |
.SH AUTHOR |
| 40 |
Arnold Robbins, |
| 41 |
.BR [email protected] . |
| 42 |
.SH COPYING PERMISSIONS |
| 43 |
Copyright \(co 2012, 2013, 2018, |
| 44 |
Free Software Foundation, Inc. |
| 45 |
.PP |
| 46 |
Permission is granted to make and distribute verbatim copies of |
| 47 |
this manual page provided the copyright notice and this permission |
| 48 |
notice are preserved on all copies. |
| 49 |
.ig |
| 50 |
Permission is granted to process this file through troff and print the |
| 51 |
results, provided the printed document carries copying permission |
| 52 |
notice identical to this one except for the removal of this paragraph |
| 53 |
(this paragraph not being relevant to the printed manual page). |
| 54 |
.. |
| 55 |
.PP |
| 56 |
Permission is granted to copy and distribute modified versions of this |
| 57 |
manual page under the conditions for verbatim copying, provided that |
| 58 |
the entire resulting derived work is distributed under the terms of a |
| 59 |
permission notice identical to this one. |
| 60 |
.PP |
| 61 |
Permission is granted to copy and distribute translations of this |
| 62 |
manual page into another language, under the above conditions for |
| 63 |
modified versions, except that this permission notice may be stated in |
| 64 |
a translation approved by the Foundation. |
| 65 |
.\" vim: set filetype=nroff : |