[Home]
HomePage RecentChanges Frequently Asked Questions

print

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.


Edit this page View other revisions Administration
Last edited 2011年05月11日 15:10 UTC by markhobley (diff)

Powered by sdf Creative Commons License <pierre.gaston+awk@gmail.com>

Awk Wiki by #awk is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.

AltStyle によって変換されたページ (->オリジナル) /