redirection operator

Last edit

Summary: Delete this page. This page is being renamed.

Changed:

< The [[greaterthan]] symbol acts as an [[output]] redirection operator allowing output from a [[function]] to be written to a named [[file]]. If the named [[file]] exists, its contents will be overwritten by the [[output]] from the [[function]]:
< {{{
< BEGIN {
< # Creates a file foobar.txt
< # If the file already exists, its contents will be overwritten
< print "Hello" > foobar.txt
< }
< }}}
< A [[doublebeak]] symbol behaves in a similar manner to the [[greaterthan]] symbol, but instead of the [[file]] being overwritten, the [[output]] from the [[function]] will be appended to the end of the file:
< {{{
< BEGIN {
< # Append a message to the end of the file foobar.txt
< print "Hello" >> foobar.txt
< }
< }}}

to

> [[DeletedPage]]


[[DeletedPage?]]