print

Last edit

Summary: updates from markhobley.yi.org

Changed:

< The **print** function is [[variadic]] and is used to produce simple standardized [[output]]. A [[comma]] separated [[list]] of items for output is provided in the [[argument]] list.

to

> The [[variadic]] **print** function is used to produce simple standardized [[output]]. A [[comma]] separated [[list]] of items for output is provided in the [[argument]] list.


Usage

print [ LIST ]

The [[variadic?]] print function is used to produce simple standardized output. A [[comma?]] separated [[list?]] of items for output is provided in the [[argument?]] list.

Examples

print "Hello"

Default value

If the print function is given no [[argument?]] list, then it will by default output the current record:

 # These two commands are equivalent
 print $0
 print

Default action

Note that the default action within a rule is to print all [[line?]]s that match the pattern. This means that an action to just print a matching line can be omitted altogether.