HomePage
RecentChanges
Frequently Asked Questions
AwkGuide
Work in Progress
import from Mark Hobley's wiki
Content
Overview
Features of awk
When to use awk
Which version of awk should I choose?
Invocation
Hello World
How to awk
Conversion of scripts to suit different awk versions
Overview
Overview
Features of awk
Features of awk
When to use awk
[[When_to_use_awk
?
]]
Which version of awk should I choose?
Which version of awk should I choose
?
Invocation
Invoking an awk program
Hello World
Hello World in awk
How to awk
action
s
arithmetic
ARGC
ARGV
[[associative_container
?
|array]]s
assign
ment
[[associative_container
?
]]s
backslash
BEGIN
bitwise operator
s
[[block
?
]]s
brace
s
branch
es
[[builtin_function
?
]]s
calling section
case conversion
case sensitivity
[[caveat
?
]]s
[[close
?
]]
[[command
?
]]s
command line parameter
s
comment
s
comparative operator
s
compound assignment operator
s
concatenation
conditional
branch
es
[[conditional_loop
?
]]s
constant
s
[[constructor
?
]]s
[[context
?
]]
continuation
character
control structure
s
[[conversion_qualifier
?
]]s
[[conversion_specifier
?
]]s
[[datatype
?
]]s
[[declaration
?
]]
[[default_variable
?
]]
[[define_functions
?
]]
delimiter
s
[[destructor
?
]]s
division
[[doublequotes
?
]]
[[empty_statement
?
]]
[[empty_string
?
]]
END
enumeration
ENVIRON
[[error_handling
?
]]
escape sequence
s
[[expression
?
]]s
field
s
field reference
operator
field separator
file
handling
[[floating_point
?
]] numbers
[[for_loop
?
]]s
[[foreach
?
]] loops
FS
[[function
?
]]s
gawkism
s
getline
goto
[[grouping_arguments
?
]]
hashbang
hash
symbol
here document
s
[[identifier
?
]]s
if
conditional constructs
include
files
[[infinite_loop
?
]]s
input
[[instruction
?
]]s
integer
division
[[internal
?
]]s
[[interpolation
?
]]
[[iteration
?
]]
iterative loop
s
[[invocation
?
]]
keyword
s
label
s
[[libraries
?
]]
line
continuation
[[list
?
]]s
[[literal_character
?
]]s
[[locale
?
]]
[[loop
?
]]s
[[loop_modifier
?
]]s
limitation
s
[[loop
?
]]s
main
mathematical function
s
mistake
s
modulus
operator
[[multiline
?
]] records
multiplication
NF
nudge operator
s
number
s
operator
s
output
parentheses
pattern
s
precedence
print
printf
[[putline
?
]]
[[quotationmark
?
]]s
quotient
division
read only variable
s
record
s
redirection
record separator
regular expression
s
regular expression operator
s
repeat
loops
return
RS
rule
s
[[search_pattern
?
]]s
special variable
s
statement
s
string
s
string manipulation
string manipulation function
s
[[sub
?
]]
substr
ings
symbol
s
[[table
?
]]s
tolower
toupper
truth
[[typecast
?
]]ing
[until loop]s
[[value
?
]]s
variable
s
variable
assign
ment
[[variable_name
?
]]s
[[variable_substitution
?
]]
[[while
?
]] loops
whitespace
Conversion of scripts to suit different awk versions
Converting gawk scripts to traditional awk
gawkism
s